Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 12 | debug info |
| 13 | debug appl rcload warn |
| 14 | debug appl symtab warn |
| 15 | debug bcm rx,tx,link,attach warn |
| 16 | debug soc tests warn |
| 17 | debug soc rx,phy,schan,reg,socmem,dma,mem,miim,mii,intr,counter,ddr warn |
| 18 | debug soc common err |
| 19 | debug sys verinet warn |
| 20 | debug soc physim warn |
| 21 | |
| 22 | if $?QAX \ |
| 23 | 'rcload bcm88470_board.soc' |
| 24 | |
| 25 | if $?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. |
| 29 | set RCError=off |
| 30 | debug appl shell warn |
| 31 | if $?QAX \ |
| 32 | 'rcload /home/negev/bcm88470_dram_tune.soc' |
| 33 | if $?QUX \ |
| 34 | 'rcload /home/negev/bcm88270_dram_tune.soc' |
| 35 | |
| 36 | debug appl shell = |
| 37 | set RCError=on |
| 38 | |
| 39 | set RCError=off |
| 40 | rcload combo28_dram.soc |
| 41 | set RCError=on |
| 42 | |
| 43 | #Set fabric connect mode as FE for multi FAP system |
| 44 | if $?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 |
| 51 | if $?diag_chassis && $?slot "\ |
| 52 | local modid $slot" \ |
| 53 | else "\ |
| 54 | local modid $unit" |
| 55 | expr $modid==1; if $? "local modid 2" |
| 56 | |
| 57 | if $?module_id " \ |
| 58 | local modid $module_id" |
| 59 | |
| 60 | echo "$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. |
| 65 | if $?base_module_id " \ |
| 66 | local base_modid $base_module_id" \ |
| 67 | else " \ |
| 68 | local base_modid 0" |
| 69 | |
| 70 | expr $base_modid > 0 |
| 71 | if $? " \ |
| 72 | echo '$unit: base_modid=$base_modid'" |
| 73 | |
| 74 | if $?diag_chassis " \ |
| 75 | local nof_devices 2" \ |
| 76 | else "\ |
| 77 | local nof_devices 1" |
| 78 | |
| 79 | if $?n_devices " \ |
| 80 | local nof_devices $n_devices" |
| 81 | |
| 82 | expr $nof_devices > 1 |
| 83 | if $? " \ |
| 84 | echo '$unit: nof_devices=$nof_devices'" |
| 85 | |
| 86 | if $?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 |
| 95 | if $?cmodel " \ |
| 96 | config add counter_engine_sampling_interval=0;" |
| 97 | |
| 98 | #default values in a case which these parameters are not exist |
| 99 | if !$?diag_cosq_disable "\ |
| 100 | local diag_cosq_disable 0" |
| 101 | if !$?warmboot "\ |
| 102 | local warmboot 0" |
| 103 | if !$?diag_disable "\ |
| 104 | local diag_disable 0" |
| 105 | if !$?diag_no_itmh_prog_mode "\ |
| 106 | local diag_no_itmh_prog_mode 0" |
| 107 | if !$?l2_mode "\ |
| 108 | local l2_mode 0" |
| 109 | |
| 110 | #Disable interrupts in cmodel |
| 111 | if $?cmodel "\ |
| 112 | local no_intr 1" \ |
| 113 | else "\ |
| 114 | local no_intr 0" |
| 115 | |
| 116 | if $?QUX "\ |
| 117 | local no_elk 1" \ |
| 118 | else "\ |
| 119 | local no_elk 0" |
| 120 | |
| 121 | INIT_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 |
| 128 | echo "qax.soc: Done." |