| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2008, 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: bcm97405.inc $ |
|---|
| 11 | # $brcm_Revision: 14 $ |
|---|
| 12 | # $brcm_Date: 2/1/08 4:59p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # $brcm_Log: /BSEAV/api/build/magnum/bcm97405.inc $ |
|---|
| 19 | # |
|---|
| 20 | # 14 2/1/08 4:59p katrep |
|---|
| 21 | # PR39180: Added support for ofdm/DVB-T THD tuner |
|---|
| 22 | # |
|---|
| 23 | # 13 1/18/08 3:37p katrep |
|---|
| 24 | # PR38239: Added support for external analog input.656 for video/i2s |
|---|
| 25 | # input for audio. Enable this feature by compiling with |
|---|
| 26 | # B_HAS_EXTERNAL_ANALOG=1 compile time flag. |
|---|
| 27 | # |
|---|
| 28 | # 12 11/5/07 10:34a katrep |
|---|
| 29 | # PR27643: Enabled smartcard support |
|---|
| 30 | # |
|---|
| 31 | # 11 10/12/07 5:18p jrubio |
|---|
| 32 | # PR35007: must compile both 4501 and 4506^ |
|---|
| 33 | # |
|---|
| 34 | # 10 10/11/07 1:56p jrubio |
|---|
| 35 | # PR35007: adding 4506 tuner support |
|---|
| 36 | # |
|---|
| 37 | # 9 10/9/07 3:35a katrep |
|---|
| 38 | # PR35844: Added PCM playback support for 7405. |
|---|
| 39 | # |
|---|
| 40 | # 8 10/6/07 12:47a katrep |
|---|
| 41 | # PR34354: Added compile time support for various raptor flags in settop |
|---|
| 42 | # api. |
|---|
| 43 | # |
|---|
| 44 | # 7 9/20/07 1:58p katrep |
|---|
| 45 | # PR34354: Diabled AC3,AC3 plus audio support as default options. |
|---|
| 46 | # |
|---|
| 47 | # 6 7/12/07 1:54p katrep |
|---|
| 48 | # PR27643: 7405 first audio integration. |
|---|
| 49 | # |
|---|
| 50 | # 5 6/28/07 1:51p katrep |
|---|
| 51 | # PR27643: Enable unified itb format as default option. |
|---|
| 52 | # |
|---|
| 53 | # 4 6/7/07 6:48p vle |
|---|
| 54 | # PR 31924: Define HDMI Tx Support for platform |
|---|
| 55 | # |
|---|
| 56 | # 3 6/1/07 11:44a gmullen |
|---|
| 57 | # PR27642: Added unified ITB support. |
|---|
| 58 | # |
|---|
| 59 | # 2 5/31/07 3:07p katrep |
|---|
| 60 | # PR27643:Added support for 7405 |
|---|
| 61 | # |
|---|
| 62 | # 1 3/26/07 7:09p katrep |
|---|
| 63 | # PR27643: Added support for 7405 |
|---|
| 64 | # |
|---|
| 65 | # |
|---|
| 66 | ############################################################ |
|---|
| 67 | |
|---|
| 68 | #By default disable Ac3+ support |
|---|
| 69 | ifneq ($(subst Y,y,${RAP_DDP_SUPPORT}),y) |
|---|
| 70 | CFLAGS += -DB_RAP_NO_AC3PLUS_SUPPORT |
|---|
| 71 | endif |
|---|
| 72 | |
|---|
| 73 | #By default disable Ac3 support |
|---|
| 74 | ifneq ($(subst Y,y,${RAP_AC3_SUPPORT}),y) |
|---|
| 75 | CFLAGS += -DB_RAP_NO_AC3_SUPPORT |
|---|
| 76 | endif |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | #By default disable WMA support |
|---|
| 80 | ifneq ($(subst Y,y,${RAP_WMA_SUPPORT}),y) |
|---|
| 81 | CFLAGS += -DB_RAP_NO_WMA_SUPPORT |
|---|
| 82 | endif |
|---|
| 83 | |
|---|
| 84 | # By default enable the unified itb format |
|---|
| 85 | UNIFIED_ITB_SUPPORT=y |
|---|
| 86 | |
|---|
| 87 | # RAVE unified ITB support. |
|---|
| 88 | ifeq ($(UNIFIED_ITB_SUPPORT),y) |
|---|
| 89 | CFLAGS += -DUNIFIED_ITB_SUPPORT |
|---|
| 90 | endif |
|---|
| 91 | |
|---|
| 92 | # |
|---|
| 93 | # On 97405 3510 is the default option |
|---|
| 94 | # |
|---|
| 95 | ifeq ($(VSB3510_SUPPORT),) |
|---|
| 96 | VSB3510_SUPPORT=y |
|---|
| 97 | endif |
|---|
| 98 | |
|---|
| 99 | ifeq ($(VSB3510_SUPPORT),y) |
|---|
| 100 | include ${ROCKFORD}/modules/3510.inc |
|---|
| 101 | include ${ROCKFORD}/modules/3510/vsb.inc |
|---|
| 102 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3510ap |
|---|
| 103 | CFLAGS += -DVSB_CHIP=3510 |
|---|
| 104 | SRCS += bsettop_tuner_3510.c |
|---|
| 105 | else |
|---|
| 106 | include ${ROCKFORD}/modules/3520.inc |
|---|
| 107 | include ${ROCKFORD}/modules/3520/vsb.inc |
|---|
| 108 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3520ap_a1 |
|---|
| 109 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3520ap_b0 |
|---|
| 110 | SRCS += bsettop_tuner_3520.c |
|---|
| 111 | endif |
|---|
| 112 | |
|---|
| 113 | # default 97405 to 4500, but allow it to be turned off |
|---|
| 114 | ifeq ($(SDS4500_SUPPORT),) |
|---|
| 115 | SDS4500_SUPPORT=y |
|---|
| 116 | endif |
|---|
| 117 | |
|---|
| 118 | ifeq ($(SDS4500_SUPPORT),y) |
|---|
| 119 | R_OBJ += ${ROCKFORD}/bsp/bcm97405/common/bcm4500ap |
|---|
| 120 | include ${ROCKFORD}/modules/4500.inc |
|---|
| 121 | include ${ROCKFORD}/modules/4500/sds.inc |
|---|
| 122 | SRCS += bsettop_tuner_4500.c |
|---|
| 123 | CFLAGS += -DSDS_CHIP=4500 |
|---|
| 124 | endif |
|---|
| 125 | |
|---|
| 126 | # default 97405 to 4501, but allow it to be turned off |
|---|
| 127 | ifeq ($(AST4501_SUPPORT),) |
|---|
| 128 | AST4501_SUPPORT=y |
|---|
| 129 | BAST_CHIP+= 4501 |
|---|
| 130 | endif |
|---|
| 131 | |
|---|
| 132 | # add 4506 support |
|---|
| 133 | ifeq ($(AST4506_SUPPORT),) |
|---|
| 134 | AST4506_SUPPORT=y |
|---|
| 135 | BAST_CHIP+= 4506 |
|---|
| 136 | endif |
|---|
| 137 | |
|---|
| 138 | ifeq ($(AST4501_SUPPORT),y) |
|---|
| 139 | include ${MAGNUM}/portinginterface/ast/bast.inc |
|---|
| 140 | SRCS += bsettop_tuner_4501.c |
|---|
| 141 | CFLAGS += -DAST_CHIP=450x |
|---|
| 142 | endif |
|---|
| 143 | |
|---|
| 144 | |
|---|
| 145 | ifeq ($(AST4506_SUPPORT),y) |
|---|
| 146 | SRCS += bsettop_tuner_4506.c |
|---|
| 147 | ifeq ($(AST4501_SUPPORT),) |
|---|
| 148 | include ${MAGNUM}/portinginterface/ast/bast.inc |
|---|
| 149 | CFLAGS += -DAST_CHIP=450x |
|---|
| 150 | endif |
|---|
| 151 | endif |
|---|
| 152 | |
|---|
| 153 | |
|---|
| 154 | ifeq (${SYSTEM},linux) |
|---|
| 155 | # Needs a special version of a kernel, don't enable by default |
|---|
| 156 | #B_HAS_PLAYPUMP_IP ?= y |
|---|
| 157 | endif |
|---|
| 158 | ifeq (${B_HAS_PLAYPUMP_IP},y) |
|---|
| 159 | CFLAGS += -DB_HAS_PLAYPUMP_IP |
|---|
| 160 | CFLAGS += ${BNETIF_DMA_CFLAGS} |
|---|
| 161 | endif |
|---|
| 162 | |
|---|
| 163 | include ${ROCKFORD}/modules/uhf.inc |
|---|
| 164 | |
|---|
| 165 | B_HAS_SMARTCARD=y |
|---|
| 166 | HDMI_TX_SUPPORT=y |
|---|
| 167 | B_HAS_PCM=y |
|---|
| 168 | |
|---|
| 169 | ifeq (${B_HAS_I2S_OUTPUT},y) |
|---|
| 170 | CFLAGS += -DB_HAS_I2S_OUTPUT=1 |
|---|
| 171 | endif |
|---|
| 172 | |
|---|
| 173 | ifeq (${B_HAS_EXTERNAL_ANALOG},y) |
|---|
| 174 | CFLAGS += -DB_HAS_EXTERNAL_ANALOG=1 |
|---|
| 175 | endif |
|---|
| 176 | |
|---|
| 177 | |
|---|
| 178 | # add DVB-T tuner support |
|---|
| 179 | ifeq ($(B_HAS_OFDM),) |
|---|
| 180 | THD2940_SUPPORT=y |
|---|
| 181 | endif |
|---|
| 182 | |
|---|
| 183 | ifeq ($(THD2940_SUPPORT),y) |
|---|
| 184 | BTHD_CHIP+= 2940 |
|---|
| 185 | include ${MAGNUM}/portinginterface/thd/bthd.inc |
|---|
| 186 | SRCS += bsettop_tuner_2940.c |
|---|
| 187 | CFLAGS += -DTHD_CHIP=2940 |
|---|
| 188 | CFLAGS += -DB_HAS_OFDM |
|---|
| 189 | endif |
|---|
| 190 | |
|---|