source: svn/trunk/newcon3bcm2_21bu/BSEAV/api/build/magnum/bsp.inc @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 8.4 KB
Line 
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
145include $(BSEAV)/api/build/Makefile.common
146
147MAGNUM = $(shell cd "$(BSEAV)/../magnum" && ${PWD})
148ROCKFORD = $(shell cd "${MAGNUM}/../rockford" && ${PWD})
149
150ifeq (${SYSTEM}, linux)
151OS := linuxuser
152else
153OS := ${SYSTEM}
154endif
155
156BCM_BOARD = bcm${BCM_BOARD_NO}
157
158ifeq (${PLATFORM}, 97038)
159BCHP_CHIP := 7038
160BCHP_QAM_CHIP := 3250
161endif
162
163ifeq (${PLATFORM}, 97398)
164BCHP_CHIP := 7038
165BCHP_XVD_CHIP := 7411
166endif
167
168ifeq (${PLATFORM}, 93560)
169BCHP_CHIP := 3560
170BCHP_XVD_CHIP := 7411
171endif
172
173ifeq (${PLATFORM}, 97401)
174BCHP_CHIP := 7401
175BCHP_XVD_CHIP := 7401
176endif
177
178ifeq (${PLATFORM}, 97403)
179BCHP_CHIP := 7403
180BCHP_XVD_CHIP := 7403
181endif
182
183ifeq (${PLATFORM}, 97405)
184BCHP_CHIP := 7405
185BCHP_XVD_CHIP := 7405
186endif
187
188ifeq ($(PLATFORM), 93380vms)
189BCHP_CHIP := 7420
190BCHP_XVD_CHIP := 7420
191endif
192
193ifeq (${PLATFORM}, 97420)
194BCHP_CHIP := 7420
195BCHP_XVD_CHIP := 7420
196endif
197
198ifeq (${PLATFORM}, 97410)
199BCHP_CHIP := 7420
200BCHP_XVD_CHIP := 7420
201endif
202
203ifeq (${PLATFORM}, 97409)
204BCHP_CHIP := 7420
205BCHP_XVD_CHIP := 7420
206endif
207
208ifeq (${PLATFORM}, 97325)
209BCHP_CHIP := 7325
210BCHP_XVD_CHIP := 7325
211endif
212
213
214ifeq (${PLATFORM}, 97335)
215BCHP_CHIP := 7335
216BCHP_XVD_CHIP := 7335
217endif
218
219
220ifeq (${PLATFORM}, 97435)
221BCHP_CHIP := 7401
222BCHP_XVD_CHIP := 7401
223endif
224
225ifeq (${PLATFORM}, 97455)
226BCHP_CHIP := 7401
227BCHP_XVD_CHIP := 7401
228endif
229
230ifeq (${PLATFORM}, 97458)
231BCHP_CHIP := 7403
232BCHP_XVD_CHIP := 7403
233endif
234
235ifeq (${PLATFORM}, 97459)
236BCHP_CHIP := 7405
237BCHP_XVD_CHIP := 7405
238endif
239
240ifeq (${PLATFORM}, 97456)
241BCHP_CHIP := 7400
242BCHP_XVD_CHIP := 7400
243endif
244
245ifeq (${PLATFORM}, 97400)
246BCHP_CHIP := 7400
247BCHP_XVD_CHIP := 7400
248endif
249
250ifneq ($(findstring $(PLATFORM),97118 97118RNG),)
251BCHP_CHIP := 7118
252BCHP_XVD_CHIP := 7118
253endif
254
255ifneq ($(findstring $(PLATFORM),97018 97018RNG),)
256BCHP_CHIP := 7118
257BCHP_XVD_CHIP := 7118
258endif
259
260ifeq (${PLATFORM}, 97440)
261BCHP_CHIP := 7440
262BCHP_XVD_CHIP := 7440
263endif
264
265ifeq (${PLATFORM}, 97422)
266BCHP_CHIP := 7422
267BCHP_XVD_CHIP := 7422
268endif
269
270ifeq (${PLATFORM}, 97231)
271BCHP_CHIP := 7231
272BCHP_XVD_CHIP := 7231
273endif
274
275ifeq (${PLATFORM}, 97230)
276BCHP_CHIP := 7231
277BCHP_XVD_CHIP := 7231
278endif
279
280ifeq (${PLATFORM}, 97418)
281BCHP_CHIP := 7344
282BCHP_XVD_CHIP := 7344
283endif
284ifeq (${PLATFORM}, 97344)
285BCHP_CHIP := 7344
286BCHP_XVD_CHIP := 7344
287endif
288ifeq (${PLATFORM}, 97346)
289BCHP_CHIP := 7346
290BCHP_XVD_CHIP := 7346
291endif
292ifeq (${PLATFORM}, 97358)
293BCHP_CHIP := 7358
294BCHP_XVD_CHIP := 7358
295endif
296ifeq (${PLATFORM}, 97552)
297BCHP_CHIP := 7552
298BCHP_XVD_CHIP := 7552
299endif
300include  $(ROCKFORD)/modules/basemodules.inc
301include  $(ROCKFORD)/modules/chp.inc
302include  $(ROCKFORD)/modules/int.inc
303include  $(ROCKFORD)/modules/mem.inc
304include  $(ROCKFORD)/modules/mrc.inc
305include  $(ROCKFORD)/modules/mth.inc
306include  $(ROCKFORD)/modules/reg.inc
307include  $(ROCKFORD)/modules/fmt.inc
308include  $(ROCKFORD)/modules/i2c.inc
309ifeq ($(findstring $(BCHP_CHIP),7401 7403 7405 7038 7400 7118 7440 7325 7335 7344 7346), $(BCHP_CHIP))
310include  $(ROCKFORD)/modules/tmr.inc
311endif
312include  $(ROCKFORD)/modules/${BCHP_CHIP}.inc
313
314ifdef BCHP_XVD_CHIP
315include  $(ROCKFORD)/modules/${BCHP_XVD_CHIP}.inc
316ifeq (${SYSTEM}, linuxkernel)
317CFLAGS += ${CFLAGS_IMG}
318else
319ifeq (${PLATFORM}, 97398)
320include  $(ROCKFORD)/modules/${BCHP_XVD_CHIP}_img.inc
321include  $(ROCKFORD)/modules/${BCHP_XVD_CHIP}/rap_img.inc
322endif
323endif
324include  $(ROCKFORD)/modules/img.inc
325endif
326
327
328ifdef BCHP_QAM_CHIP
329include  $(ROCKFORD)/modules/${BCHP_QAM_CHIP}.inc
330include  $(ROCKFORD)/modules/int_qam.inc
331endif
332
333ifeq (${PLATFORM}, 93560)
334R_INC += ${ROCKFORD}/commondrivers/swch/93560/
335R_OBJ += \
336 ${ROCKFORD}/commondrivers/swch/93560/bswch \
337 ${ROCKFORD}/commondrivers/swch/93560/bswch_name
338endif
339
340ifeq (${PLATFORM}, 93560)
341R_INC += ${ROCKFORD}/commondrivers/swch/93560/
342endif
343
344
345R_INC += ${ROCKFORD}/bsp/bcm9${CHIP}/common
346
347ifeq (,$(filter-out linux linuxkernel , ${SYSTEM}))
348R_OBJ += \
349 ${ROCKFORD}/bsp/bcm${PLATFORM}/common/int1
350endif
351
352R_OBJ += ${ROCKFORD}/bsp/bcm9${CHIP}/common/bcmtm
353
354ifeq (,$(filter-out 97018 97118 97455 97400 97401 97403 97405 97038 97440 97325, ${PLATFORM}))
355R_INC += ${ROCKFORD}/commondrivers/fpga/${PLATFORM}
356R_OBJ += \
357 ${ROCKFORD}/commondrivers/fpga/${PLATFORM}/bfpga_name \
358 ${ROCKFORD}/commondrivers/fpga/${PLATFORM}/bfpga
359endif
360
361SRCS +=  \
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
370ifneq ($(SYSTEM),linuxkernel)
371SRCS += bsettop_isr.c
372endif
373
374ifeq (${SYSTEM},linux)
375CFLAGS += -I${BSEAV}/linux/driver/usermode
376endif
377
378
379ifeq ($(findstring $(BCHP_CHIP),7038 3560), $(BCHP_CHIP))
380B_API_IMPL = $(BSETTOP)/src/magnum
381else
382B_API_IMPL = $(BSETTOP)/src/$(BCHP_CHIP)
383endif
384
385# This should be first
386vpath %.c $(B_API_IMPL)
387vpath %.c $(B_API_IMPL)/board
388
389CFLAGS += -I$(B_API_IMPL)/board
390
391ifneq ($(B_BOARD_MEM),)
392# pass board specific memory size
393CFLAGS += -DB_BOARD_MEM=${B_BOARD_MEM}
394endif
395
Note: See TracBrowser for help on using the repository browser.