| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2011, Broadcom Corporation |
|---|
| 3 | # All Rights Reserved |
|---|
| 4 | # Confidential Property of Broadcom Corporation |
|---|
| 5 | # |
|---|
| 6 | # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | # AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | # EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | # |
|---|
| 10 | # $brcm_Workfile: bint.inc $ |
|---|
| 11 | # $brcm_Revision: Hydra_Software_Devel/9 $ |
|---|
| 12 | # $brcm_Date: 4/5/11 7:13p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # Created: 01/09/2007 by Jon Garrett |
|---|
| 19 | # |
|---|
| 20 | # $brcm_Log: /magnum/basemodules/int/bint.inc $ |
|---|
| 21 | # |
|---|
| 22 | # Hydra_Software_Devel/9 4/5/11 7:13p nickh |
|---|
| 23 | # SW7422-412: Add environment variable to exclude VICE2 for 7422 |
|---|
| 24 | # |
|---|
| 25 | # Hydra_Software_Devel/8 9/28/10 3:23p hongtaoz |
|---|
| 26 | # SW7425-10: added BINT_OPEN_BYPASS_L2INIT compile option; |
|---|
| 27 | # |
|---|
| 28 | # Hydra_Software_Devel/7 4/23/10 2:30p erickson |
|---|
| 29 | # SW3548-2904: add BCHP_DISABLE_IRQ0_SPI option if kernel is supporting |
|---|
| 30 | # SPI flash |
|---|
| 31 | # |
|---|
| 32 | # Hydra_Software_Devel/6 4/2/10 12:27p nickh |
|---|
| 33 | # SW7420-331: Add BINT_AVD1_DISABLED |
|---|
| 34 | # |
|---|
| 35 | # Hydra_Software_Devel/5 12/8/09 11:09a jgarrett |
|---|
| 36 | # SW7408-17: Adding initial APE support |
|---|
| 37 | # |
|---|
| 38 | # Hydra_Software_Devel/4 8/10/09 5:57p jrubio |
|---|
| 39 | # PR57301: add BAST_AFEC_CORE_DISABLED |
|---|
| 40 | # |
|---|
| 41 | # Hydra_Software_Devel/3 9/8/08 7:54p shyam |
|---|
| 42 | # PR40732 : Add PCI interrupt support for 7043 |
|---|
| 43 | # |
|---|
| 44 | # Hydra_Software_Devel/2 1/18/07 3:17p jasonh |
|---|
| 45 | # PR 27117: Added bint_dump.c to list. |
|---|
| 46 | # |
|---|
| 47 | # Hydra_Software_Devel/1 1/11/07 2:37p jgarrett |
|---|
| 48 | # PR27004: Adding new .inc files |
|---|
| 49 | # |
|---|
| 50 | ############################################################ |
|---|
| 51 | |
|---|
| 52 | # |
|---|
| 53 | # Conditional Options for this Makefile |
|---|
| 54 | # |
|---|
| 55 | # BCHP_7411_VER - If defined (in lower-case), specifies the revision of the 7411 chip to be supported. |
|---|
| 56 | # BCHP_QAM_CHIP - If defined, specifies the revision of the QAM chip to be supported. |
|---|
| 57 | # BINT_ENABLE_IPI - If defined, IPI (inter-processor interrupts) are supported. Not compatible with SMP Linux. |
|---|
| 58 | # |
|---|
| 59 | |
|---|
| 60 | # Define this module |
|---|
| 61 | MAGNUM_MODULES += BINT |
|---|
| 62 | |
|---|
| 63 | # Module Includes |
|---|
| 64 | BINT_INCLUDES += $(MAGNUM)/basemodules/int |
|---|
| 65 | BINT_INCLUDES += $(MAGNUM)/basemodules/int/$(BCHP_CHIP) |
|---|
| 66 | |
|---|
| 67 | # Module Sources |
|---|
| 68 | BINT_SOURCES += $(MAGNUM)/basemodules/int/bint.c |
|---|
| 69 | BINT_SOURCES += $(MAGNUM)/basemodules/int/bint_dump.c |
|---|
| 70 | BINT_SOURCES += $(MAGNUM)/basemodules/int/$(BCHP_CHIP)/bint_$(BCHP_CHIP).c |
|---|
| 71 | |
|---|
| 72 | # |
|---|
| 73 | # Handle conditional options |
|---|
| 74 | # |
|---|
| 75 | ifneq ($(BCHP_7411_VER),) |
|---|
| 76 | # 7411 support |
|---|
| 77 | BINT_INCLUDES += $(MAGNUM)/basemodules/int/7411 |
|---|
| 78 | BINT_SOURCES += $(MAGNUM)/basemodules/int/7411/bint_7411.c |
|---|
| 79 | endif |
|---|
| 80 | |
|---|
| 81 | ifeq ($(BAST_AFEC_CORE_DISABLED),y) |
|---|
| 82 | BINT_DEFINES += BAST_AFEC_CORE_DISABLED |
|---|
| 83 | endif |
|---|
| 84 | |
|---|
| 85 | ifeq ($(BINT_AVD1_DISABLED),y) |
|---|
| 86 | BINT_DEFINES += BINT_AVD1_DISABLED |
|---|
| 87 | endif |
|---|
| 88 | |
|---|
| 89 | ifneq ($(BCHP_QAM_CHIP),) |
|---|
| 90 | BINT_INCLUDES += $(MAGNUM)/basemodules/int |
|---|
| 91 | BINT_INCLUDES += $(MAGNUM)/basemodules/int/$(BCHP_QAM_CHIP) |
|---|
| 92 | |
|---|
| 93 | BINT_SOURCES += $(MAGNUM)/basemodules/int/$(BCHP_QAM_CHIP)/bint_$(BCHP_QAM_CHIP).c |
|---|
| 94 | endif |
|---|
| 95 | |
|---|
| 96 | ifneq ($(BENC_CHIP),) |
|---|
| 97 | # 7043 support |
|---|
| 98 | BINT_INCLUDES += $(MAGNUM)/basemodules/int/$(BENC_CHIP) |
|---|
| 99 | BINT_SOURCES += $(MAGNUM)/basemodules/int/$(BENC_CHIP)/bint_$(BENC_CHIP).c |
|---|
| 100 | endif |
|---|
| 101 | |
|---|
| 102 | ifeq ($(BINT_ENABLE_IPI),y) |
|---|
| 103 | BINT_DEFINES += BINT_ENABLE_IPI=1 |
|---|
| 104 | endif |
|---|
| 105 | |
|---|
| 106 | ifeq ($(BINT_OPEN_BYPASS_L2INIT), y) |
|---|
| 107 | BINT_DEFINES += BINT_OPEN_BYPASS_L2INIT=1 |
|---|
| 108 | endif |
|---|
| 109 | |
|---|
| 110 | ifeq ($(BINT_VICE2_DISABLED),y) |
|---|
| 111 | BINT_DEFINES += BINT_VICE2_DISABLED |
|---|
| 112 | endif |
|---|
| 113 | |
|---|
| 114 | ifeq ($(BCHP_DISABLE_IRQ0_SPI),y) |
|---|
| 115 | # For 3548/3556, the linux kernel will access IRQ0_SPI_IRQEN for SPI flash devices. |
|---|
| 116 | # If you are using SPI flash, you must export BCHP_DISABLE_IRQ0_SPI=y to prevent Magnum |
|---|
| 117 | # from disabling this interrupt. If you need magnum and kernel acess to SPI, you cannot enable |
|---|
| 118 | # this code. Instead use the linux kernel's spidev techinque. See SW3548-2904 for details. |
|---|
| 119 | BINT_DEFINES += BCHP_DISABLE_IRQ0_SPI=1 |
|---|
| 120 | endif |
|---|