sonic-buildimage/device/inventec/x86_64-inventec_d7054q28b-r0/led_proc_init.soc

201 lines
9.8 KiB
Plaintext
Raw Normal View History

#LED processor initialization for Inventec d7054q28b platform
led 0 stop
led 0 prog 02 00 60 F1 12 00 DA 0F 70 10 67 61 67 5C 77 06 02 A0 60 F0 02 00 60 F2 12 00 06 F0 4A 01 71 38 4A 02 27 67 5C 06 F2 28 32 08 67 5C 06 F2 28 32 00 32 01 B7 67 5C 77 44 67 64 67 5C 67 64 67 5C 67 61 67 5C DA 6C 70 4E 86 F0 86 F2 77 1A 12 00 DA 03 70 5A 67 64 67 5C 77 50 3E F1 87 86 F1 81 57 17 27 57 07 27 57
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=14
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=15
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=13
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=10
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=11
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=9
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=6
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=7
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=5
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=2
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=3
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=0
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=1
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=31
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=30
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=29
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=63
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=35
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=34
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=33
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=23
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=22
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=21
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=27
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=26
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=25
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=19
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=18
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=17
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=16
led 0 start
led 1 stop
led 1 prog 02 00 60 F1 12 00 DA 0F 70 10 67 61 67 5C 77 06 02 A0 60 F0 02 00 60 F2 12 00 06 F0 4A 01 71 38 4A 02 27 67 5C 06 F2 28 32 08 67 5C 06 F2 28 32 00 32 01 B7 67 5C 77 44 67 64 67 5C 67 64 67 5C 67 61 67 5C DA 6C 70 4E 86 F0 86 F2 77 1A 12 00 DA 03 70 5A 67 64 67 5C 77 50 3E F1 87 86 F1 81 57 17 27 57 07 27 57
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=2
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=3
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=1
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=6
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=7
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=5
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=10
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=11
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=9
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=14
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=15
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=13
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=18
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=19
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=17
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=22
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=23
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=21
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=26
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=27
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=25
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=30
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=31
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=29
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=35
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=34
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=33
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=63
led 1 start
# Set per port speed config of LED Color register
# For Invnetec Cypress platform,
# If we want to set 10G speed per port, We need to set amber color light, so use cmd "setreg CMIC_LEDUP0_DATA_RAM(160) 0x04".
# If we want to set 25G ( or up ) speed per port, we need to set green color light, so use cmd "setreg CMIC_LEDUP0_DATA_RAM(160) 0x00".
setreg CMIC_LEDUP0_DATA_RAM(160) 0x00
setreg CMIC_LEDUP0_DATA_RAM(161) 0x00
setreg CMIC_LEDUP0_DATA_RAM(162) 0x00
setreg CMIC_LEDUP0_DATA_RAM(163) 0x00
setreg CMIC_LEDUP0_DATA_RAM(164) 0x00
setreg CMIC_LEDUP0_DATA_RAM(165) 0x00
setreg CMIC_LEDUP0_DATA_RAM(166) 0x00
setreg CMIC_LEDUP0_DATA_RAM(167) 0x00
setreg CMIC_LEDUP0_DATA_RAM(168) 0x00
setreg CMIC_LEDUP0_DATA_RAM(169) 0x00
setreg CMIC_LEDUP0_DATA_RAM(170) 0x00
setreg CMIC_LEDUP0_DATA_RAM(171) 0x00
setreg CMIC_LEDUP0_DATA_RAM(172) 0x00
setreg CMIC_LEDUP0_DATA_RAM(173) 0x00
setreg CMIC_LEDUP0_DATA_RAM(174) 0x00
setreg CMIC_LEDUP0_DATA_RAM(175) 0x00
setreg CMIC_LEDUP0_DATA_RAM(176) 0x00
setreg CMIC_LEDUP0_DATA_RAM(177) 0x00
setreg CMIC_LEDUP0_DATA_RAM(178) 0x00
setreg CMIC_LEDUP0_DATA_RAM(179) 0x00
setreg CMIC_LEDUP0_DATA_RAM(180) 0x00
setreg CMIC_LEDUP0_DATA_RAM(181) 0x00
setreg CMIC_LEDUP0_DATA_RAM(182) 0x00
setreg CMIC_LEDUP0_DATA_RAM(183) 0x00
setreg CMIC_LEDUP0_DATA_RAM(184) 0x00
setreg CMIC_LEDUP0_DATA_RAM(185) 0x00
setreg CMIC_LEDUP0_DATA_RAM(186) 0x00
setreg CMIC_LEDUP0_DATA_RAM(187) 0x00
setreg CMIC_LEDUP0_DATA_RAM(188) 0x00
setreg CMIC_LEDUP0_DATA_RAM(189) 0x00
setreg CMIC_LEDUP0_DATA_RAM(190) 0x00
setreg CMIC_LEDUP0_DATA_RAM(191) 0x00
setreg CMIC_LEDUP0_DATA_RAM(192) 0x00
setreg CMIC_LEDUP0_DATA_RAM(193) 0x00
setreg CMIC_LEDUP0_DATA_RAM(194) 0x00
setreg CMIC_LEDUP0_DATA_RAM(195) 0x00
setreg CMIC_LEDUP0_DATA_RAM(196) 0x00
setreg CMIC_LEDUP0_DATA_RAM(197) 0x00
setreg CMIC_LEDUP0_DATA_RAM(198) 0x00
setreg CMIC_LEDUP0_DATA_RAM(199) 0x00
setreg CMIC_LEDUP0_DATA_RAM(200) 0x00
setreg CMIC_LEDUP0_DATA_RAM(201) 0x00
setreg CMIC_LEDUP0_DATA_RAM(202) 0x00
setreg CMIC_LEDUP0_DATA_RAM(203) 0x00
setreg CMIC_LEDUP0_DATA_RAM(204) 0x00
setreg CMIC_LEDUP0_DATA_RAM(205) 0x00
setreg CMIC_LEDUP0_DATA_RAM(206) 0x00
setreg CMIC_LEDUP0_DATA_RAM(207) 0x00
setreg CMIC_LEDUP0_DATA_RAM(208) 0x00
setreg CMIC_LEDUP0_DATA_RAM(209) 0x00
setreg CMIC_LEDUP0_DATA_RAM(210) 0x00
setreg CMIC_LEDUP0_DATA_RAM(211) 0x00
setreg CMIC_LEDUP0_DATA_RAM(212) 0x00
setreg CMIC_LEDUP0_DATA_RAM(213) 0x00
age 150