| 1 | ############################################################ |
|---|
| 2 | # copyright (c) 2003-2006, 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: bsp.inc $ |
|---|
| 11 | # $brcm_revision: refsw_93560_bringup/1 $ |
|---|
| 12 | # $brcm_date: 3/10/05 6:53p $ |
|---|
| 13 | # |
|---|
| 14 | # module description: |
|---|
| 15 | # |
|---|
| 16 | # revision history: |
|---|
| 17 | # |
|---|
| 18 | # created: 02/09/2001 by marcus kellerman |
|---|
| 19 | # |
|---|
| 20 | # $brcm_Log: /BSEAV/api/build/magnum/bsp.inc $ |
|---|
| 21 | # |
|---|
| 22 | # 50 2/15/11 7:14p xhuang |
|---|
| 23 | # SW7358-34: Add 7358/7552 support |
|---|
| 24 | # |
|---|
| 25 | # 48 12/22/10 4:35p katrep |
|---|
| 26 | # SW7231-25:add initial support for 7230 |
|---|
| 27 | # |
|---|
| 28 | # 47 12/15/10 10:09a jrubio |
|---|
| 29 | # SW7344-9: add 7344/7346 support |
|---|
| 30 | # |
|---|
| 31 | # 46 12/6/10 4:22p katrep |
|---|
| 32 | # SW7231-4:initial support |
|---|
| 33 | # |
|---|
| 34 | # 45 11/10/10 5:38p spothana |
|---|
| 35 | # SW7420-1078: Add BCM97409 support. |
|---|
| 36 | # |
|---|
| 37 | # 44 10/20/10 3:29p nickh |
|---|
| 38 | # SW7422-80: Add 97422 support |
|---|
| 39 | # |
|---|
| 40 | # 43 1/20/10 5:38p garetht |
|---|
| 41 | # SW7420-553: Add platform for 93380vms |
|---|
| 42 | # |
|---|
| 43 | # 42 1/19/10 2:46p nickh |
|---|
| 44 | # SW7420-541: Rename 97420dvr2 to 97420 |
|---|
| 45 | # |
|---|
| 46 | # 41 10/30/09 5:21p nickh |
|---|
| 47 | # SW7420-331: Rename 97410c to 97410 |
|---|
| 48 | # |
|---|
| 49 | # 40 9/15/09 5:07p nickh |
|---|
| 50 | # SW7420-331: Add 7410 support |
|---|
| 51 | # |
|---|
| 52 | # 39 6/25/09 8:46p leisun |
|---|
| 53 | # PR 55693: Chechking in DTCP-IP lib, add 7420 build for bcrypt |
|---|
| 54 | # |
|---|
| 55 | # 38 6/20/08 5:57p anilmm |
|---|
| 56 | # PR43453: Add support for 97459 |
|---|
| 57 | # |
|---|
| 58 | # 37 4/25/08 2:30p bandrews |
|---|
| 59 | # PR36149: Moved syslib framework impl out of board and into base |
|---|
| 60 | # |
|---|
| 61 | # 36 3/28/08 12:38p bandrews |
|---|
| 62 | # PR36149: Moved inclusion of bsyslib_framework.inc to file that compiles |
|---|
| 63 | # syslib framework impl |
|---|
| 64 | # |
|---|
| 65 | # 35 3/27/08 9:27p bandrews |
|---|
| 66 | # PR36149: Moved inclusion of syslib framework files to bsp.inc, where |
|---|
| 67 | # the impl is compiled |
|---|
| 68 | # |
|---|
| 69 | # 34 2/15/08 9:09p bandrews |
|---|
| 70 | # PR36149: SETAPI syslib impl |
|---|
| 71 | # |
|---|
| 72 | # 33 12/10/07 6:37p mward |
|---|
| 73 | # PR38078: Create PLATFORM for 97018, 97018RNG |
|---|
| 74 | # |
|---|
| 75 | # 32 11/26/07 12:34p katrep |
|---|
| 76 | # PR37217: 7335 bringup |
|---|
| 77 | # |
|---|
| 78 | # 31 10/3/07 6:00p jrubio |
|---|
| 79 | # PR35015: fix 7325 |
|---|
| 80 | # |
|---|
| 81 | # 30 9/20/07 11:33a jrubio |
|---|
| 82 | # PR35015: adding 7325 support |
|---|
| 83 | # |
|---|
| 84 | # 29 4/16/07 1:05p erickson |
|---|
| 85 | # PR29890: move 7401 code to api/src/CHIP |
|---|
| 86 | # |
|---|
| 87 | # 28 1/17/07 11:33a anilmm |
|---|
| 88 | # PR27129:add 97458A0 platform support |
|---|
| 89 | # |
|---|
| 90 | # 27 11/16/06 5:07p jgarrett |
|---|
| 91 | # PR 25230: Moving usermode driver to BSEAV |
|---|
| 92 | # |
|---|
| 93 | # 26 10/31/06 9:14a erickson |
|---|
| 94 | # PR25109: add 7403 support |
|---|
| 95 | # |
|---|
| 96 | # 25 9/29/06 4:29p mward |
|---|
| 97 | # PR24604: create PLATFORM for 97118RNG. |
|---|
| 98 | # |
|---|
| 99 | # 24 9/6/06 1:26p vsilyaev |
|---|
| 100 | # PR 24124: Added framework to detect stack overflow |
|---|
| 101 | # |
|---|
| 102 | # 23 8/18/06 6:07p katrep |
|---|
| 103 | # PR23114: Added support for 7440 |
|---|
| 104 | # |
|---|
| 105 | # 22 5/26/06 9:02a mward |
|---|
| 106 | # PR21671: Add support for 7118 chip 97118 board. |
|---|
| 107 | # |
|---|
| 108 | # 21 4/27/06 5:24p haisongw |
|---|
| 109 | # PR 20984: add 97456 platform support |
|---|
| 110 | # |
|---|
| 111 | # 20 4/20/06 3:18p erickson |
|---|
| 112 | # PR19738: 97435 merge |
|---|
| 113 | # |
|---|
| 114 | # PROD_97435C_REFSW_Devel/1 4/18/06 6:55p gqli |
|---|
| 115 | # PR19738: add BCM97435C support |
|---|
| 116 | # |
|---|
| 117 | # 19 2/23/06 12:08p vsilyaev |
|---|
| 118 | # PR 18701: Use RMC_Monitor module istead of RMM |
|---|
| 119 | # |
|---|
| 120 | # 18 1/19/06 9:53a jgarrett |
|---|
| 121 | # PR 19105: Create 97400 BSP |
|---|
| 122 | # |
|---|
| 123 | # Refsw_Devel_7400_A0/2 1/19/06 9:43a jgarrett |
|---|
| 124 | # PR 19105: Creating BSP for 97400 |
|---|
| 125 | # |
|---|
| 126 | # 17 1/13/06 4:13p vsilyaev |
|---|
| 127 | # PR 18003: pass memory size configuration as a compiler option |
|---|
| 128 | # |
|---|
| 129 | # refsw_93560_bringup/1 3/10/05 6:53p vsilyaev |
|---|
| 130 | # refactored board specific and bsp files |
|---|
| 131 | # |
|---|
| 132 | # 1 2/7/05 6:53p dlwin |
|---|
| 133 | # merge down for release 2005_refsw_mergetomain: |
|---|
| 134 | # |
|---|
| 135 | # irvine_bseavsw_devel/8 1/13/05 4:35p vsilyaev |
|---|
| 136 | # pr 13823: added support for 97398 board. |
|---|
| 137 | # |
|---|
| 138 | # irvine_bseavsw_devel/7 10/21/04 4:46p erickson |
|---|
| 139 | # pr12857: switch to 3520 support by default |
|---|
| 140 | # |
|---|
| 141 | # irvine_bseavsw_devel/6 5/12/04 10:23a erickson |
|---|
| 142 | # pr10967: added standard header |
|---|
| 143 | ############################################################ |
|---|
| 144 | |
|---|
| 145 | include $(BSEAV)/api/build/Makefile.common |
|---|
| 146 | |
|---|
| 147 | MAGNUM = $(shell cd "$(BSEAV)/../magnum" && ${PWD}) |
|---|
| 148 | ROCKFORD = $(shell cd "${MAGNUM}/../rockford" && ${PWD}) |
|---|
| 149 | |
|---|
| 150 | ifeq (${SYSTEM}, linux) |
|---|
| 151 | OS := linuxuser |
|---|
| 152 | else |
|---|
| 153 | OS := ${SYSTEM} |
|---|
| 154 | endif |
|---|
| 155 | |
|---|
| 156 | BCM_BOARD = bcm${BCM_BOARD_NO} |
|---|
| 157 | |
|---|
| 158 | ifeq (${PLATFORM}, 97038) |
|---|
| 159 | BCHP_CHIP := 7038 |
|---|
| 160 | BCHP_QAM_CHIP := 3250 |
|---|
| 161 | endif |
|---|
| 162 | |
|---|
| 163 | ifeq (${PLATFORM}, 97398) |
|---|
| 164 | BCHP_CHIP := 7038 |
|---|
| 165 | BCHP_XVD_CHIP := 7411 |
|---|
| 166 | endif |
|---|
| 167 | |
|---|
| 168 | ifeq (${PLATFORM}, 93560) |
|---|
| 169 | BCHP_CHIP := 3560 |
|---|
| 170 | BCHP_XVD_CHIP := 7411 |
|---|
| 171 | endif |
|---|
| 172 | |
|---|
| 173 | ifeq (${PLATFORM}, 97401) |
|---|
| 174 | BCHP_CHIP := 7401 |
|---|
| 175 | BCHP_XVD_CHIP := 7401 |
|---|
| 176 | endif |
|---|
| 177 | |
|---|
| 178 | ifeq (${PLATFORM}, 97403) |
|---|
| 179 | BCHP_CHIP := 7403 |
|---|
| 180 | BCHP_XVD_CHIP := 7403 |
|---|
| 181 | endif |
|---|
| 182 | |
|---|
| 183 | ifeq (${PLATFORM}, 97405) |
|---|
| 184 | BCHP_CHIP := 7405 |
|---|
| 185 | BCHP_XVD_CHIP := 7405 |
|---|
| 186 | endif |
|---|
| 187 | |
|---|
| 188 | ifeq ($(PLATFORM), 93380vms) |
|---|
| 189 | BCHP_CHIP := 7420 |
|---|
| 190 | BCHP_XVD_CHIP := 7420 |
|---|
| 191 | endif |
|---|
| 192 | |
|---|
| 193 | ifeq (${PLATFORM}, 97420) |
|---|
| 194 | BCHP_CHIP := 7420 |
|---|
| 195 | BCHP_XVD_CHIP := 7420 |
|---|
| 196 | endif |
|---|
| 197 | |
|---|
| 198 | ifeq (${PLATFORM}, 97410) |
|---|
| 199 | BCHP_CHIP := 7420 |
|---|
| 200 | BCHP_XVD_CHIP := 7420 |
|---|
| 201 | endif |
|---|
| 202 | |
|---|
| 203 | ifeq (${PLATFORM}, 97409) |
|---|
| 204 | BCHP_CHIP := 7420 |
|---|
| 205 | BCHP_XVD_CHIP := 7420 |
|---|
| 206 | endif |
|---|
| 207 | |
|---|
| 208 | ifeq (${PLATFORM}, 97325) |
|---|
| 209 | BCHP_CHIP := 7325 |
|---|
| 210 | BCHP_XVD_CHIP := 7325 |
|---|
| 211 | endif |
|---|
| 212 | |
|---|
| 213 | |
|---|
| 214 | ifeq (${PLATFORM}, 97335) |
|---|
| 215 | BCHP_CHIP := 7335 |
|---|
| 216 | BCHP_XVD_CHIP := 7335 |
|---|
| 217 | endif |
|---|
| 218 | |
|---|
| 219 | |
|---|
| 220 | ifeq (${PLATFORM}, 97435) |
|---|
| 221 | BCHP_CHIP := 7401 |
|---|
| 222 | BCHP_XVD_CHIP := 7401 |
|---|
| 223 | endif |
|---|
| 224 | |
|---|
| 225 | ifeq (${PLATFORM}, 97455) |
|---|
| 226 | BCHP_CHIP := 7401 |
|---|
| 227 | BCHP_XVD_CHIP := 7401 |
|---|
| 228 | endif |
|---|
| 229 | |
|---|
| 230 | ifeq (${PLATFORM}, 97458) |
|---|
| 231 | BCHP_CHIP := 7403 |
|---|
| 232 | BCHP_XVD_CHIP := 7403 |
|---|
| 233 | endif |
|---|
| 234 | |
|---|
| 235 | ifeq (${PLATFORM}, 97459) |
|---|
| 236 | BCHP_CHIP := 7405 |
|---|
| 237 | BCHP_XVD_CHIP := 7405 |
|---|
| 238 | endif |
|---|
| 239 | |
|---|
| 240 | ifeq (${PLATFORM}, 97456) |
|---|
| 241 | BCHP_CHIP := 7400 |
|---|
| 242 | BCHP_XVD_CHIP := 7400 |
|---|
| 243 | endif |
|---|
| 244 | |
|---|
| 245 | ifeq (${PLATFORM}, 97400) |
|---|
| 246 | BCHP_CHIP := 7400 |
|---|
| 247 | BCHP_XVD_CHIP := 7400 |
|---|
| 248 | endif |
|---|
| 249 | |
|---|
| 250 | ifneq ($(findstring $(PLATFORM),97118 97118RNG),) |
|---|
| 251 | BCHP_CHIP := 7118 |
|---|
| 252 | BCHP_XVD_CHIP := 7118 |
|---|
| 253 | endif |
|---|
| 254 | |
|---|
| 255 | ifneq ($(findstring $(PLATFORM),97018 97018RNG),) |
|---|
| 256 | BCHP_CHIP := 7118 |
|---|
| 257 | BCHP_XVD_CHIP := 7118 |
|---|
| 258 | endif |
|---|
| 259 | |
|---|
| 260 | ifeq (${PLATFORM}, 97440) |
|---|
| 261 | BCHP_CHIP := 7440 |
|---|
| 262 | BCHP_XVD_CHIP := 7440 |
|---|
| 263 | endif |
|---|
| 264 | |
|---|
| 265 | ifeq (${PLATFORM}, 97422) |
|---|
| 266 | BCHP_CHIP := 7422 |
|---|
| 267 | BCHP_XVD_CHIP := 7422 |
|---|
| 268 | endif |
|---|
| 269 | |
|---|
| 270 | ifeq (${PLATFORM}, 97231) |
|---|
| 271 | BCHP_CHIP := 7231 |
|---|
| 272 | BCHP_XVD_CHIP := 7231 |
|---|
| 273 | endif |
|---|
| 274 | |
|---|
| 275 | ifeq (${PLATFORM}, 97230) |
|---|
| 276 | BCHP_CHIP := 7231 |
|---|
| 277 | BCHP_XVD_CHIP := 7231 |
|---|
| 278 | endif |
|---|
| 279 | |
|---|
| 280 | ifeq (${PLATFORM}, 97418) |
|---|
| 281 | BCHP_CHIP := 7344 |
|---|
| 282 | BCHP_XVD_CHIP := 7344 |
|---|
| 283 | endif |
|---|
| 284 | ifeq (${PLATFORM}, 97344) |
|---|
| 285 | BCHP_CHIP := 7344 |
|---|
| 286 | BCHP_XVD_CHIP := 7344 |
|---|
| 287 | endif |
|---|
| 288 | ifeq (${PLATFORM}, 97346) |
|---|
| 289 | BCHP_CHIP := 7346 |
|---|
| 290 | BCHP_XVD_CHIP := 7346 |
|---|
| 291 | endif |
|---|
| 292 | ifeq (${PLATFORM}, 97358) |
|---|
| 293 | BCHP_CHIP := 7358 |
|---|
| 294 | BCHP_XVD_CHIP := 7358 |
|---|
| 295 | endif |
|---|
| 296 | ifeq (${PLATFORM}, 97552) |
|---|
| 297 | BCHP_CHIP := 7552 |
|---|
| 298 | BCHP_XVD_CHIP := 7552 |
|---|
| 299 | endif |
|---|
| 300 | include $(ROCKFORD)/modules/basemodules.inc |
|---|
| 301 | include $(ROCKFORD)/modules/chp.inc |
|---|
| 302 | include $(ROCKFORD)/modules/int.inc |
|---|
| 303 | include $(ROCKFORD)/modules/mem.inc |
|---|
| 304 | include $(ROCKFORD)/modules/mrc.inc |
|---|
| 305 | include $(ROCKFORD)/modules/mth.inc |
|---|
| 306 | include $(ROCKFORD)/modules/reg.inc |
|---|
| 307 | include $(ROCKFORD)/modules/fmt.inc |
|---|
| 308 | include $(ROCKFORD)/modules/i2c.inc |
|---|
| 309 | ifeq ($(findstring $(BCHP_CHIP),7401 7403 7405 7038 7400 7118 7440 7325 7335 7344 7346), $(BCHP_CHIP)) |
|---|
| 310 | include $(ROCKFORD)/modules/tmr.inc |
|---|
| 311 | endif |
|---|
| 312 | include $(ROCKFORD)/modules/${BCHP_CHIP}.inc |
|---|
| 313 | |
|---|
| 314 | ifdef BCHP_XVD_CHIP |
|---|
| 315 | include $(ROCKFORD)/modules/${BCHP_XVD_CHIP}.inc |
|---|
| 316 | ifeq (${SYSTEM}, linuxkernel) |
|---|
| 317 | CFLAGS += ${CFLAGS_IMG} |
|---|
| 318 | else |
|---|
| 319 | ifeq (${PLATFORM}, 97398) |
|---|
| 320 | include $(ROCKFORD)/modules/${BCHP_XVD_CHIP}_img.inc |
|---|
| 321 | include $(ROCKFORD)/modules/${BCHP_XVD_CHIP}/rap_img.inc |
|---|
| 322 | endif |
|---|
| 323 | endif |
|---|
| 324 | include $(ROCKFORD)/modules/img.inc |
|---|
| 325 | endif |
|---|
| 326 | |
|---|
| 327 | |
|---|
| 328 | ifdef BCHP_QAM_CHIP |
|---|
| 329 | include $(ROCKFORD)/modules/${BCHP_QAM_CHIP}.inc |
|---|
| 330 | include $(ROCKFORD)/modules/int_qam.inc |
|---|
| 331 | endif |
|---|
| 332 | |
|---|
| 333 | ifeq (${PLATFORM}, 93560) |
|---|
| 334 | R_INC += ${ROCKFORD}/commondrivers/swch/93560/ |
|---|
| 335 | R_OBJ += \ |
|---|
| 336 | ${ROCKFORD}/commondrivers/swch/93560/bswch \ |
|---|
| 337 | ${ROCKFORD}/commondrivers/swch/93560/bswch_name |
|---|
| 338 | endif |
|---|
| 339 | |
|---|
| 340 | ifeq (${PLATFORM}, 93560) |
|---|
| 341 | R_INC += ${ROCKFORD}/commondrivers/swch/93560/ |
|---|
| 342 | endif |
|---|
| 343 | |
|---|
| 344 | |
|---|
| 345 | R_INC += ${ROCKFORD}/bsp/bcm9${CHIP}/common |
|---|
| 346 | |
|---|
| 347 | ifeq (,$(filter-out linux linuxkernel , ${SYSTEM})) |
|---|
| 348 | R_OBJ += \ |
|---|
| 349 | ${ROCKFORD}/bsp/bcm${PLATFORM}/common/int1 |
|---|
| 350 | endif |
|---|
| 351 | |
|---|
| 352 | R_OBJ += ${ROCKFORD}/bsp/bcm9${CHIP}/common/bcmtm |
|---|
| 353 | |
|---|
| 354 | ifeq (,$(filter-out 97018 97118 97455 97400 97401 97403 97405 97038 97440 97325, ${PLATFORM})) |
|---|
| 355 | R_INC += ${ROCKFORD}/commondrivers/fpga/${PLATFORM} |
|---|
| 356 | R_OBJ += \ |
|---|
| 357 | ${ROCKFORD}/commondrivers/fpga/${PLATFORM}/bfpga_name \ |
|---|
| 358 | ${ROCKFORD}/commondrivers/fpga/${PLATFORM}/bfpga |
|---|
| 359 | endif |
|---|
| 360 | |
|---|
| 361 | SRCS += \ |
|---|
| 362 | bsettop_board.c \ |
|---|
| 363 | bsettop_bsp_${BCHP_CHIP}.c \ |
|---|
| 364 | bsettop_${SYSTEM}.c \ |
|---|
| 365 | bsettop_priv.c \ |
|---|
| 366 | bsettop_core.c \ |
|---|
| 367 | bsettop_core_event.c \ |
|---|
| 368 | bsettop_core_stackguard.c |
|---|
| 369 | |
|---|
| 370 | ifneq ($(SYSTEM),linuxkernel) |
|---|
| 371 | SRCS += bsettop_isr.c |
|---|
| 372 | endif |
|---|
| 373 | |
|---|
| 374 | ifeq (${SYSTEM},linux) |
|---|
| 375 | CFLAGS += -I${BSEAV}/linux/driver/usermode |
|---|
| 376 | endif |
|---|
| 377 | |
|---|
| 378 | |
|---|
| 379 | ifeq ($(findstring $(BCHP_CHIP),7038 3560), $(BCHP_CHIP)) |
|---|
| 380 | B_API_IMPL = $(BSETTOP)/src/magnum |
|---|
| 381 | else |
|---|
| 382 | B_API_IMPL = $(BSETTOP)/src/$(BCHP_CHIP) |
|---|
| 383 | endif |
|---|
| 384 | |
|---|
| 385 | # This should be first |
|---|
| 386 | vpath %.c $(B_API_IMPL) |
|---|
| 387 | vpath %.c $(B_API_IMPL)/board |
|---|
| 388 | |
|---|
| 389 | CFLAGS += -I$(B_API_IMPL)/board |
|---|
| 390 | |
|---|
| 391 | ifneq ($(B_BOARD_MEM),) |
|---|
| 392 | # pass board specific memory size |
|---|
| 393 | CFLAGS += -DB_BOARD_MEM=${B_BOARD_MEM} |
|---|
| 394 | endif |
|---|
| 395 | |
|---|