blob: 895ae81d96e2c9405da6f979f0ade29ce85b03c7 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001#
2# $Id: qax.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
8# Load DRAM tuning properties from local File. RcLoad will not fail if file not found, and will not show errors of missing file.
9#der 0x40 4
10#exit
11
12debug info
13debug appl rcload warn
14debug appl symtab warn
15debug bcm rx,tx,link,attach warn
16debug soc tests warn
17debug soc rx,phy,schan,reg,socmem,dma,mem,miim,mii,intr,counter,ddr warn
18debug soc common err
19debug sys verinet warn
20debug soc physim warn
21
22if $?QAX \
23 'rcload bcm88470_board.soc'
24
25if $?QUX \
26 'rcload bcm88270_board.soc'
27
28# Load DRAM tuning properties from local File. RcLoad will not fail if file not found, and will not show errors of missing file.
29set RCError=off
30debug appl shell warn
31if $?QAX \
32 'rcload /home/negev/bcm88470_dram_tune.soc'
33if $?QUX \
34 'rcload /home/negev/bcm88270_dram_tune.soc'
35
36debug appl shell =
37set RCError=on
38
39set RCError=off
40rcload combo28_dram.soc
41set RCError=on
42
43#Set fabric connect mode as FE for multi FAP system
44if $?diag_chassis " \
45 config add fabric_connect_mode.BCM88470=FE"
46
47# Set modid:
48# If diag_chassis is enabled (two line cards), and 'slot' is defined (slot is defined only when
49# working without a management card - set modid to be 'slot'
50# Otherwise (single line card, or management card), set modid to be 0 for unit 0, and 1 for unit != 0
51if $?diag_chassis && $?slot "\
52 local modid $slot" \
53else "\
54 local modid $unit"
55expr $modid==1; if $? "local modid 2"
56
57if $?module_id " \
58 local modid $module_id"
59
60echo "$unit: modid=$modid"
61
62# Set base_modid:
63# Id base_module_id is set, then set base_modid to have base_module_id value.
64# Otherwise, set base_modid to be 0.
65if $?base_module_id " \
66 local base_modid $base_module_id" \
67else " \
68 local base_modid 0"
69
70expr $base_modid > 0
71if $? " \
72 echo '$unit: base_modid=$base_modid'"
73
74if $?diag_chassis " \
75 local nof_devices 2" \
76else "\
77 local nof_devices 1"
78
79if $?n_devices " \
80 local nof_devices $n_devices"
81
82expr $nof_devices > 1
83if $? " \
84 echo '$unit: nof_devices=$nof_devices'"
85
86if $?mng_cpu " \
87 echo '$unit:management card - polling is set on'; \
88 config add polled_irq_mode.BCM88675=1; \
89 config add schan_intr_enable.BCM88675=0; \
90 config add tdma_intr_enable.BCM88675=0; \
91 config add tslam_intr_enable.BCM88675=0; \
92 config add miim_intr_enable.BCM88675=0; "
93
94#Counters unavailable in cmodel
95if $?cmodel " \
96 config add counter_engine_sampling_interval=0;"
97
98#default values in a case which these parameters are not exist
99if !$?diag_cosq_disable "\
100 local diag_cosq_disable 0"
101if !$?warmboot "\
102 local warmboot 0"
103if !$?diag_disable "\
104 local diag_disable 0"
105if !$?diag_no_itmh_prog_mode "\
106 local diag_no_itmh_prog_mode 0"
107if !$?l2_mode "\
108 local l2_mode 0"
109
110#Disable interrupts in cmodel
111if $?cmodel "\
112 local no_intr 1" \
113else "\
114 local no_intr 0"
115
116if $?QUX "\
117 local no_elk 1" \
118else "\
119 local no_elk 0"
120
121INIT_DNX ModID=$modid NofDevices=$nof_devices CosqDisable=$diag_cosq_disable NoAppl=$diag_disable Warmboot=$warmboot NoRxLos=1 NoLinkscan=0 NoElkDevice=$no_elk NoElkAppl=0 NoItmhProgMode=$diag_no_itmh_prog_mode L2Mode=$l2_mode NoIntr=$no_intr
122
123#echo "performing force forward to sysport 1"
124#mod IHP_PINFO_LLR 0 256 DEFAULT_CPU_TRAP_CODE=200 DEFAULT_ACTION_PROFILE_FWD=7
125#mod IHB_FWD_ACT_PROFILE 200 1 FWD_ACT_DESTINATION=0x10001 FWD_ACT_DESTINATION_OVERWRITE=1
126#echo "performing credit flush from NIF to EGQ"
127#m NBIH_TX_EGRESS_CREDITS_DEBUG_PM TX_FLUSH_EGRESS_PORT_0_MLF_0_QMLF_N=1 TX_FLUSH_EGRESS_PORT_0_MLF_1_QMLF_N=1 TX_FLUSH_EGRESS_PORT_0_MLF_2_QMLF_N=1 TX_FLUSH_EGRESS_PORT_0_MLF_3_QMLF_N=1
128echo "qax.soc: Done."