blob: eb906756780429d2020403b06651d7d27696cdea [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001#
2# $Id: jer.soc,v 1.90 2013/08/14 08:32:00 ninash Exp $
3#
4# $Copyright: (c) 2011 Broadcom Corporation
5# All Rights Reserved.$
6#
7
8debug info
9debug appl rcload warn
10debug appl symtab warn
11debug bcm rx,tx,link,attach warn
12debug soc tests warn
13debug soc rx,phy,schan,reg,socmem,dma,mem,miim,mii,intr,counter,ddr warn
14debug soc common err
15debug sys verinet warn
16debug soc physim warn
17
18if $?QMX_A0 || $?BCM88370_A0 || $?BCM88371_A0 || $?BCM88371M_A0 || $?BCM88375_A0 || $?BCM88376_A0 || $?BCM88376M_A0 || $?BCM88377_A0 || $?BCM88378_A0 || $?BCM88379_A0 || \
19 $?QMX_A1 || $?BCM88370_A1 || $?BCM88371_A1 || $?BCM88371M_A1 || $?BCM88375_A1 || $?BCM88376_A1 || $?BCM88376M_A1 || $?BCM88377_A1 || $?BCM88378_A1 || $?BCM88379_A1 ||\
20 $?QMX_B0 || $?BCM88370_B0 || $?BCM88371_B0 || $?BCM88371M_B0 || $?BCM88375_B0 || $?BCM88376_B0 || $?BCM88376M_B0 || $?BCM88377_B0 || $?BCM88378_B0 || $?BCM88379_B0 \
21 'local QMX 1'
22if $?JERICHO_A0 || $?BCM88670_A0 || $?BCM88671_A0 || $?BCM88671M_A0 || $?BCM88672_A0 || $?BCM88673_A0 || $?BCM88674_A0 || $?BCM88675_A0 || $?BCM88675M_A0 || $?BCM88676_A0 || $?BCM88676M_A0 || $?BCM88678_A0 || $?BCM88679_A0 || \
23 $?JERICHO_A1 || $?BCM88670_A1 || $?BCM88671_A1 || $?BCM88671M_A1 || $?BCM88672_A1 || $?BCM88673_A1 || $?BCM88674_A1 || $?BCM88675_A1 || $?BCM88675M_A1 || $?BCM88676_A1 || $?BCM88676M_A1 || $?BCM88678_A1 || $?BCM88679_A1 || \
24 $?JERICHO_B0 || $?BCM88670_B0 || $?BCM88671_B0 || $?BCM88671M_B0 || $?BCM88672_B0 || $?BCM88673_B0 || $?BCM88674_B0 || $?BCM88675_B0 || $?BCM88675M_B0 || $?BCM88676_B0 || $?BCM88676M_B0 || $?BCM88678_B0 || $?BCM88679_B0 \
25 'local JERICHO 1'
26if $?BCM88680_A0 || $?BCM88681_A0 || $?BCM88682_A0 || $?BCM88683_A0 || $?BCM88380_A0 || $?BCM88381_A0 \
27 'local JERPLUS 1'
28
29if $?BCM88690_A0 \
30 'local JERTWO 1'
31
32if $?QMX \
33 'rcload bcm88375_board.soc'
34if $?JERICHO \
35 'rcload bcm88675_board.soc'
36
37if $?JERPLUS \
38 'rcload bcm88680_board.soc'
39
40#
41# For Jericho-2:
42# This will have to change when we have bcm88690_board.soc
43#
44if $?JERTWO \
45 'rcload bcm88680_board.soc'
46
47# Load DRAM tuning properties from local File. RcLoad will not fail if file not found, and will not show errors of missing file.
48set RCError=off
49debug appl shell warn
50if $?QMX \
51 'rcload /home/negev/bcm88375_dram_tune.soc'
52
53if $?JERICHO \
54 'rcload /home/negev/bcm88675_dram_tune.soc'
55
56debug appl shell =
57set RCError=on
58
59set RCError=off
60rcload combo28_dram.soc
61set RCError=on
62
63#Set fabric connect mode as FE for multi FAP system
64if $?diag_chassis " \
65 config add fabric_connect_mode.BCM88675=FE"
66
67# Set modid:
68# If diag_chassis is enabled (two line cards), and 'slot' is defined (slot is defined only when
69# working without a management card - set modid to be 'slot'
70# Otherwise (single line card, or management card), set modid to be 0 for unit 0, and 1 for unit != 0
71if $?diag_chassis && $?slot "\
72 local modid $slot" \
73else "\
74 local modid $unit"
75expr $modid==1; if $? "local modid 2"
76
77if $?module_id " \
78 local modid $module_id"
79
80echo "$unit: modid=$modid"
81
82# Set base_modid:
83# Id base_module_id is set, then set base_modid to have base_module_id value.
84# Otherwise, set base_modid to be 0.
85if $?base_module_id " \
86 local base_modid $base_module_id" \
87else " \
88 local base_modid 0"
89
90expr $base_modid > 0
91if $? " \
92 echo '$unit: base_modid=$base_modid'"
93
94if $?diag_chassis " \
95 local nof_devices 2" \
96else "\
97 local nof_devices 1"
98
99if $?n_devices " \
100 local nof_devices $n_devices"
101
102expr $nof_devices > 1
103if $? " \
104 echo '$unit: nof_devices=$nof_devices'"
105
106if $?mng_cpu " \
107 echo '$unit:management card - polling is set on'; \
108 config add polled_irq_mode.BCM88675=1; \
109 config add schan_intr_enable.BCM88675=0; \
110 config add tdma_intr_enable.BCM88675=0; \
111 config add tslam_intr_enable.BCM88675=0; \
112 config add miim_intr_enable.BCM88675=0; "
113
114#Counters unavailable in cmodel
115if $?cmodel " \
116 config add counter_engine_sampling_interval=0;"
117
118#default values in a case which these parameters are not exist
119if !$?diag_cosq_disable "\
120 local diag_cosq_disable 0"
121if !$?warmboot "\
122 local warmboot 0"
123if !$?diag_disable "\
124 local diag_disable 0"
125if !$?diag_no_itmh_prog_mode "\
126 local diag_no_itmh_prog_mode 0"
127if !$?l2_mode "\
128 local l2_mode 0"
129
130if $?JERPLUS "\
131 local diag_disable 0"
132local init_others NoLinkscan=0
133if $?JERPLUS "\
134 local init_others 'NoIntr=1 NoLinkscan=1 NoApplStk=0'"
135
136#Disable interrupts in cmodel
137if $?cmodel "\
138 local no_intr 1" \
139else "\
140 local no_intr 0"
141
142#
143# For Jericho-2, we TEMPORARILY disable some components to quickly enable
144# a working PCID version.
145#
146if $?JERTWO "\
147 local no_soc 0"
148
149if $?JERTWO "\
150 local no_intr 1"
151
152
153#INIT_DNX ModID=$modid NofDevices=$nof_devices CosqDisable=$diag_cosq_disable NoAppl=$diag_disable Warmboot=$warmboot NoRxLos=1 $init_others NoItmhProgMode=$diag_no_itmh_prog_mode L2Mode=$l2_mode NoIntr=$no_intr NoSoc=$no_soc
154
155INIT_DNX
156
157#LED support section start
158#Program of LED0
159local ledcode_0 '02 05 67 2D 02 01 67 2D 02 11 67 2D 02 09 67 2D\
160 02 15 67 2D 02 0D 67 2D 86 E0 3A 06 28 32 00 32\
161 01 B7 97 75 3E 16 E0 CA 06 70 3E 77 3A 67 33 75\
162 3A 77 1C 12 A0 F8 15 1A 00 57 32 0E 87 57 32 0F\
163 87 57' #sdk88670.hex
164
165#Program of LED1
166local ledcode_1 '02 1D 67 2D 02 2D 67 2D 02 05 67 2D 02 0D 67 2D\
167 02 09 67 2D 02 01 67 2D 86 E0 3A 06 28 32 00 32\
168 01 B7 97 75 3E 16 E0 CA 06 70 3E 77 3A 67 33 75\
169 3A 77 1C 12 A0 F8 15 1A 00 57 32 0E 87 57 32 0F\
170 87 57' #sdk88670.hex
171
172
173#Program of LED2
174local ledcode_2 '02 01 67 2D 02 09 67 2D 02 0D 67 2D 02 05 67 2D\
175 02 2D 67 2D 02 1D 67 2D 86 E0 3A 06 28 32 00 32\
176 01 B7 97 75 3E 16 E0 CA 06 70 3E 77 3A 67 33 75\
177 3A 77 1C 12 A0 F8 15 1A 00 57 32 0E 87 57 32 0F\
178 87 57' #sdk88670.hex
179
180# Download LED code into LED processors and enable (if applicable).
181if $?feature_led_proc && !$?simulator \
182 "led 0 prog $ledcode_0; \
183 led 1 prog $ledcode_1; \
184 led 2 prog $ledcode_2; \
185 led auto on; \
186 led 0 start; \
187 led 1 start; \
188 led 2 start"
189
190
191echo "dnx.soc: Done............................."
192