| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2010, 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: bcm97400.inc $ |
|---|
| 11 | # $brcm_Revision: 30 $ |
|---|
| 12 | # $brcm_Date: 3/16/10 4:29p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # $brcm_Log: /BSEAV/api/build/magnum/bcm97400.inc $ |
|---|
| 19 | # |
|---|
| 20 | # 30 3/16/10 4:29p mward |
|---|
| 21 | # SW7400-2517: Maintain REFSW_XVD_7400_SINGLEDECODE support. Set |
|---|
| 22 | # B_MAX_MOSAIC_DECODES=0 at compile time if B_XVD_SINGLEDECODE=y. |
|---|
| 23 | # REFSW_PREREL_97400_SINGLE is deprecated, use REFSW_PREREL_97400. |
|---|
| 24 | # |
|---|
| 25 | # 29 6/26/09 6:29p mward |
|---|
| 26 | # PR47739: Check for B_PASSTHRU_DDP_SUPPORT=n. |
|---|
| 27 | # |
|---|
| 28 | # 27 3/13/09 5:37p mward |
|---|
| 29 | # PR49827: PR52490: Change name of SRS VIQ to SRS TrueVolume |
|---|
| 30 | # PR49827, PR50613: Settings for Dolby Volume and SRS Volume IQ. |
|---|
| 31 | # |
|---|
| 32 | # PR49827/2 2/25/09 12:17p mward |
|---|
| 33 | # PR52490: Change name of SRS VIQ to SRS TrueVolume |
|---|
| 34 | # |
|---|
| 35 | # PR49827/1 1/13/09 5:11p mward |
|---|
| 36 | # PR49827, PR50613: Settings for Dolby Volume and SRS Volume IQ. |
|---|
| 37 | # |
|---|
| 38 | # 26 11/4/08 4:14p mward |
|---|
| 39 | # PR44957: Pass configured RAP formats to Settop API, too. |
|---|
| 40 | # |
|---|
| 41 | # 25 8/11/08 5:39p mward |
|---|
| 42 | # PR39988: For 7400, select DDP pass-thru support at run-time, switching |
|---|
| 43 | # use of RAP channels if necessary. Merge to main. |
|---|
| 44 | # |
|---|
| 45 | # PR39988/1 6/4/08 5:05p mward |
|---|
| 46 | # PR39988: Detect dual output / DDP pass for 7400 at runtime. |
|---|
| 47 | # |
|---|
| 48 | # 24 5/22/08 6:44p mward |
|---|
| 49 | # PR39988: Create build option B_PASSTHRU_DDP_SUPPORT=y which allows DDP |
|---|
| 50 | # transcode to SPDIF + Passthru to HDMI. Dual decode is disabled with |
|---|
| 51 | # this option. |
|---|
| 52 | # |
|---|
| 53 | # 23 11/28/07 12:51p mward |
|---|
| 54 | # PR37117: 7400 Platforms now use UNIFIED_ITB_SUPPORT unconditionally. |
|---|
| 55 | # |
|---|
| 56 | # 22 10/12/07 6:39p jrubio |
|---|
| 57 | # PR35007: adding 4506 |
|---|
| 58 | # |
|---|
| 59 | # 21 10/5/07 2:54p mward |
|---|
| 60 | # PR32395: Fix AST build on 7400. |
|---|
| 61 | # |
|---|
| 62 | # 20 8/29/07 5:58p mward |
|---|
| 63 | # PR31736: Default on UNIFIED_ITB_SUPPORT for 97400. (set in make too, |
|---|
| 64 | # for xpt.inc.) |
|---|
| 65 | # |
|---|
| 66 | # 19 8/29/07 12:11p mward |
|---|
| 67 | # PR31736: Now default on UNIFIED_ITB_SUPPORT for 97400. |
|---|
| 68 | # |
|---|
| 69 | # 18 8/2/07 9:14a jgarrett |
|---|
| 70 | # PR 33733: Adding smartcard support |
|---|
| 71 | # |
|---|
| 72 | # 17 6/7/07 6:48p vle |
|---|
| 73 | # PR 31924: Define HDMI Tx Support for platform |
|---|
| 74 | # |
|---|
| 75 | # 16 6/1/07 10:47a gmullen |
|---|
| 76 | # PR31736: Added unified ITB support. |
|---|
| 77 | # |
|---|
| 78 | # 15 5/30/07 11:42a jgarrett |
|---|
| 79 | # PR 31687: Adding 4501 C0 support |
|---|
| 80 | # |
|---|
| 81 | # 14 5/9/07 1:15p jgarrett |
|---|
| 82 | # PR 25900: Enabling UHF for 7400B0 |
|---|
| 83 | # |
|---|
| 84 | # 13 3/12/07 12:00p arbisman |
|---|
| 85 | # PR28638: Add URT support to the build |
|---|
| 86 | # |
|---|
| 87 | # 12 3/12/07 11:33a jgarrett |
|---|
| 88 | # PR 25900: fixing copy/paste error for A0 |
|---|
| 89 | # |
|---|
| 90 | # 11 3/8/07 3:42p jgarrett |
|---|
| 91 | # PR 25900: Enabling PLAYPUMP_IP for B0 |
|---|
| 92 | # |
|---|
| 93 | # 10 3/8/07 2:40p jgarrett |
|---|
| 94 | # PR 25900: Enabling HDMI |
|---|
| 95 | # |
|---|
| 96 | # 9 2/22/07 4:23p jgarrett |
|---|
| 97 | # PR 25900: Disabling UHF for B0 (temporary) |
|---|
| 98 | # |
|---|
| 99 | # 8 11/28/06 4:00p jgarrett |
|---|
| 100 | # PR 20139: Adding 3520 B0 support |
|---|
| 101 | # |
|---|
| 102 | # 7 10/12/06 2:47p jrubio |
|---|
| 103 | # PR24902: Added IP STB Support |
|---|
| 104 | # |
|---|
| 105 | # 6 8/23/06 1:04p jgarrett |
|---|
| 106 | # PR 23738: Adding support for 4501 B0 |
|---|
| 107 | # |
|---|
| 108 | # 5 8/21/06 5:07p jgarrett |
|---|
| 109 | # PR 23738: Adding 4501 support |
|---|
| 110 | # |
|---|
| 111 | # 4 3/10/06 2:33p jgarrett |
|---|
| 112 | # PR 19265: Re-enabling HDMI for the 97400 |
|---|
| 113 | # |
|---|
| 114 | # 3 2/22/06 10:07a jgarrett |
|---|
| 115 | # PR 19674: Enabling dual-decode support for 97400 |
|---|
| 116 | # |
|---|
| 117 | # 2 1/24/06 5:30p jgarrett |
|---|
| 118 | # PR 19250: Update Set-Top API modules for 97400 |
|---|
| 119 | # |
|---|
| 120 | # 1 1/19/06 9:53a jgarrett |
|---|
| 121 | # PR 19105: Create 97400 BSP |
|---|
| 122 | # |
|---|
| 123 | # Refsw_Devel_7400_A0/1 1/12/06 3:05p jgarrett |
|---|
| 124 | # PR 18997: Creating directories for 7400 |
|---|
| 125 | # |
|---|
| 126 | ############################################################ |
|---|
| 127 | |
|---|
| 128 | ## 3510/3520 is broken for 97400 platform |
|---|
| 129 | # |
|---|
| 130 | # 3510/3520 VSB support has to be a compile-time option |
|---|
| 131 | # because the API's are similar. We default to |
|---|
| 132 | # 3520, but you can define the following in order |
|---|
| 133 | # to get 3510 support. |
|---|
| 134 | # |
|---|
| 135 | ifeq ($(VSB3510_SUPPORT),y) |
|---|
| 136 | include ${ROCKFORD}/modules/3510.inc |
|---|
| 137 | include ${ROCKFORD}/modules/3510/vsb.inc |
|---|
| 138 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3510ap |
|---|
| 139 | CFLAGS += -DVSB_CHIP=3510 |
|---|
| 140 | SRCS += bsettop_tuner_3510.c |
|---|
| 141 | else |
|---|
| 142 | include ${ROCKFORD}/modules/3520.inc |
|---|
| 143 | include ${ROCKFORD}/modules/3520/vsb.inc |
|---|
| 144 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3520ap_a1 |
|---|
| 145 | R_OBJ += ${ROCKFORD}/bsp/bcm97400/common/bcm3520ap_b0 |
|---|
| 146 | SRCS += bsettop_tuner_3520.c |
|---|
| 147 | endif |
|---|
| 148 | |
|---|
| 149 | # default 97400 to 4500, but allow it to be turned off |
|---|
| 150 | ifeq ($(SDS4500_SUPPORT),) |
|---|
| 151 | SDS4500_SUPPORT=y |
|---|
| 152 | endif |
|---|
| 153 | |
|---|
| 154 | ifeq ($(SDS4500_SUPPORT),y) |
|---|
| 155 | R_OBJ += ${ROCKFORD}/bsp/bcm97401/common/bcm4500ap |
|---|
| 156 | include ${ROCKFORD}/modules/4500.inc |
|---|
| 157 | include ${ROCKFORD}/modules/4500/sds.inc |
|---|
| 158 | SRCS += bsettop_tuner_4500.c |
|---|
| 159 | CFLAGS += -DSDS_CHIP=4500 |
|---|
| 160 | endif |
|---|
| 161 | |
|---|
| 162 | # default 97405 to 4501, but allow it to be turned off |
|---|
| 163 | ifeq ($(AST4501_SUPPORT),) |
|---|
| 164 | AST4501_SUPPORT=y |
|---|
| 165 | BAST_CHIP+= 4501 |
|---|
| 166 | endif |
|---|
| 167 | |
|---|
| 168 | # add 4506 support |
|---|
| 169 | ifeq ($(AST4506_SUPPORT),) |
|---|
| 170 | AST4506_SUPPORT=y |
|---|
| 171 | BAST_CHIP+= 4506 |
|---|
| 172 | endif |
|---|
| 173 | |
|---|
| 174 | ifeq ($(AST4501_SUPPORT),y) |
|---|
| 175 | include ${MAGNUM}/portinginterface/ast/bast.inc |
|---|
| 176 | SRCS += bsettop_tuner_4501.c |
|---|
| 177 | CFLAGS += -DAST_CHIP=450x |
|---|
| 178 | endif |
|---|
| 179 | |
|---|
| 180 | |
|---|
| 181 | ifeq ($(AST4506_SUPPORT),y) |
|---|
| 182 | SRCS += bsettop_tuner_4506.c |
|---|
| 183 | ifeq ($(AST4501_SUPPORT),) |
|---|
| 184 | include ${MAGNUM}/portinginterface/ast/bast.inc |
|---|
| 185 | CFLAGS += -DAST_CHIP=450x |
|---|
| 186 | endif |
|---|
| 187 | endif |
|---|
| 188 | |
|---|
| 189 | ifeq (${SYSTEM},linux) |
|---|
| 190 | # Needs a special version of a kernel, don't enable by default |
|---|
| 191 | #B_HAS_PLAYPUMP_IP ?= y |
|---|
| 192 | endif |
|---|
| 193 | ifeq (${B_HAS_PLAYPUMP_IP},y) |
|---|
| 194 | CFLAGS += -DB_HAS_PLAYPUMP_IP |
|---|
| 195 | CFLAGS += ${BNETIF_DMA_CFLAGS} |
|---|
| 196 | endif |
|---|
| 197 | |
|---|
| 198 | include ${ROCKFORD}/modules/uhf.inc |
|---|
| 199 | |
|---|
| 200 | B_HAS_PCM=y |
|---|
| 201 | HDMI_TX_SUPPORT=y |
|---|
| 202 | B_HAS_SMARTCARD=y |
|---|
| 203 | |
|---|
| 204 | ifeq ($(UART_B_SUPPORT),y) |
|---|
| 205 | CFLAGS += -DUART_B_SUPPORT |
|---|
| 206 | include $(ROCKFORD)/modules/urt.inc |
|---|
| 207 | endif |
|---|
| 208 | |
|---|
| 209 | ifneq ($(subst N,n,${B_PASSTHRU_DDP_SUPPORT}),n) |
|---|
| 210 | CFLAGS += -DB_PASSTHRU_DDP_SUPPORT=1 -DRAP_I2S_COMPRESS_SUPPORT |
|---|
| 211 | endif |
|---|
| 212 | |
|---|
| 213 | #By default disable AC3+ support |
|---|
| 214 | ifneq ($(subst Y,y,${RAP_DDP_SUPPORT}),y) |
|---|
| 215 | CFLAGS += -DB_RAP_NO_AC3PLUS_SUPPORT |
|---|
| 216 | endif |
|---|
| 217 | |
|---|
| 218 | #By default disable AC3 support |
|---|
| 219 | ifneq ($(subst Y,y,${RAP_AC3_SUPPORT}),y) |
|---|
| 220 | CFLAGS += -DB_RAP_NO_AC3_SUPPORT |
|---|
| 221 | endif |
|---|
| 222 | |
|---|
| 223 | |
|---|
| 224 | #By default disable WMA support |
|---|
| 225 | ifneq ($(subst Y,y,${RAP_WMA_SUPPORT}),y) |
|---|
| 226 | CFLAGS += -DB_RAP_NO_WMA_SUPPORT |
|---|
| 227 | endif |
|---|
| 228 | |
|---|
| 229 | #Dolby Volume and SRS Volume IQ are mutually exclusive |
|---|
| 230 | ifeq ($(subst Y,y,${RAP_DOLBYVOLUME_SUPPORT}),y) |
|---|
| 231 | ifeq ($(subst Y,y,${RAP_SRSTRUVOL_SUPPORT}),y) |
|---|
| 232 | $(error Only one of RAP_DOLBYVOLUME_SUPPORT or RAP_SRSTRUVOL_SUPPORT should be "y") |
|---|
| 233 | else |
|---|
| 234 | CFLAGS += -DRAP_DOLBYVOLUME_SUPPORT |
|---|
| 235 | endif |
|---|
| 236 | endif |
|---|
| 237 | |
|---|
| 238 | ifeq ($(subst Y,y,${RAP_SRSTRUVOL_SUPPORT}),y) |
|---|
| 239 | ifeq ($(subst Y,y,${RAP_DOLBYVOLUME_SUPPORT}),y) |
|---|
| 240 | $(error Only one of RAP_DOLBYVOLUME_SUPPORT or RAP_SRSTRUVOL_SUPPORT should be "y") |
|---|
| 241 | else |
|---|
| 242 | CFLAGS += -DRAP_SRSTRUVOL_SUPPORT |
|---|
| 243 | endif |
|---|
| 244 | endif |
|---|
| 245 | |
|---|
| 246 | ifneq ($(subst Y,y,${B_XVD_SINGLEDECODE}),y) |
|---|
| 247 | CFLAGS += -DB_MAX_MOSAIC_DECODES=12 |
|---|
| 248 | else |
|---|
| 249 | CFLAGS += -DB_MAX_MOSAIC_DECODES=0 |
|---|
| 250 | endif |
|---|
| 251 | |
|---|
| 252 | |
|---|