[device] accton device of as5812_54t supports SAI and modify as5812_54t periphery (#3663)

- Support as5812_54t SAI.
- Modify as5812_54t periphery.

Signed-off-by: derek_sun <derek_sun@edge-core.com>
This commit is contained in:
dereksun01 2019-11-08 08:24:42 +08:00 committed by lguohan
parent bdf1b7c607
commit 6c0ab4b926
9 changed files with 353 additions and 386 deletions

View File

@ -1,73 +1,73 @@
# name lanes alias index speed # name lanes alias index speed autoneg
Ethernet0 13 tenGigE0 1 10000 Ethernet0 14 tenGigE0 1 10000 1
Ethernet1 14 tenGigE1 2 10000 Ethernet1 13 tenGigE1 2 10000 1
Ethernet2 15 tenGigE2 3 10000 Ethernet2 16 tenGigE2 3 10000 1
Ethernet3 16 tenGigE3 4 10000 Ethernet3 15 tenGigE3 4 10000 1
Ethernet4 21 tenGigE4 5 10000 Ethernet4 22 tenGigE4 5 10000 1
Ethernet5 22 tenGigE5 6 10000 Ethernet5 21 tenGigE5 6 10000 1
Ethernet6 23 tenGigE6 7 10000 Ethernet6 24 tenGigE6 7 10000 1
Ethernet7 24 tenGigE7 8 10000 Ethernet7 23 tenGigE7 8 10000 1
Ethernet8 25 tenGigE8 9 10000 Ethernet8 26 tenGigE8 9 10000 1
Ethernet9 26 tenGigE9 10 10000 Ethernet9 25 tenGigE9 10 10000 1
Ethernet10 27 tenGigE10 11 10000 Ethernet10 28 tenGigE10 11 10000 1
Ethernet11 28 tenGigE11 12 10000 Ethernet11 27 tenGigE11 12 10000 1
Ethernet12 29 tenGigE12 13 10000 Ethernet12 30 tenGigE12 13 10000 1
Ethernet13 30 tenGigE13 14 10000 Ethernet13 29 tenGigE13 14 10000 1
Ethernet14 31 tenGigE14 15 10000 Ethernet14 32 tenGigE14 15 10000 1
Ethernet15 32 tenGigE15 16 10000 Ethernet15 31 tenGigE15 16 10000 1
Ethernet16 45 tenGigE16 17 10000 Ethernet16 46 tenGigE16 17 10000 1
Ethernet17 46 tenGigE17 18 10000 Ethernet17 45 tenGigE17 18 10000 1
Ethernet18 47 tenGigE18 19 10000 Ethernet18 48 tenGigE18 19 10000 1
Ethernet19 48 tenGigE19 20 10000 Ethernet19 47 tenGigE19 20 10000 1
Ethernet20 49 tenGigE20 21 10000 Ethernet20 50 tenGigE20 21 10000 1
Ethernet21 50 tenGigE21 22 10000 Ethernet21 49 tenGigE21 22 10000 1
Ethernet22 51 tenGigE22 23 10000 Ethernet22 52 tenGigE22 23 10000 1
Ethernet23 52 tenGigE23 24 10000 Ethernet23 51 tenGigE23 24 10000 1
Ethernet24 53 tenGigE24 25 10000 Ethernet24 54 tenGigE24 25 10000 1
Ethernet25 54 tenGigE25 26 10000 Ethernet25 53 tenGigE25 26 10000 1
Ethernet26 55 tenGigE26 27 10000 Ethernet26 56 tenGigE26 27 10000 1
Ethernet27 56 tenGigE27 28 10000 Ethernet27 55 tenGigE27 28 10000 1
Ethernet28 57 tenGigE28 29 10000 Ethernet28 58 tenGigE28 29 10000 1
Ethernet29 58 tenGigE29 30 10000 Ethernet29 57 tenGigE29 30 10000 1
Ethernet30 59 tenGigE30 31 10000 Ethernet30 60 tenGigE30 31 10000 1
Ethernet31 60 tenGigE31 32 10000 Ethernet31 59 tenGigE31 32 10000 1
Ethernet32 61 tenGigE32 33 10000 Ethernet32 62 tenGigE32 33 10000 1
Ethernet33 62 tenGigE33 34 10000 Ethernet33 61 tenGigE33 34 10000 1
Ethernet34 63 tenGigE34 35 10000 Ethernet34 64 tenGigE34 35 10000 1
Ethernet35 64 tenGigE35 36 10000 Ethernet35 63 tenGigE35 36 10000 1
Ethernet36 65 tenGigE36 37 10000 Ethernet36 66 tenGigE36 37 10000 1
Ethernet37 66 tenGigE37 38 10000 Ethernet37 65 tenGigE37 38 10000 1
Ethernet38 67 tenGigE38 39 10000 Ethernet38 68 tenGigE38 39 10000 1
Ethernet39 68 tenGigE39 40 10000 Ethernet39 67 tenGigE39 40 10000 1
Ethernet40 69 tenGigE40 41 10000 Ethernet40 70 tenGigE40 41 10000 1
Ethernet41 70 tenGigE41 42 10000 Ethernet41 69 tenGigE41 42 10000 1
Ethernet42 71 tenGigE42 43 10000 Ethernet42 72 tenGigE42 43 10000 1
Ethernet43 72 tenGigE43 44 10000 Ethernet43 71 tenGigE43 44 10000 1
Ethernet44 73 tenGigE44 45 10000 Ethernet44 74 tenGigE44 45 10000 1
Ethernet45 74 tenGigE45 46 10000 Ethernet45 73 tenGigE45 46 10000 1
Ethernet46 75 tenGigE46 47 10000 Ethernet46 76 tenGigE46 47 10000 1
Ethernet47 76 tenGigE47 48 10000 Ethernet47 75 tenGigE47 48 10000 1
Ethernet48 97 tenGigE48 49 10000 Ethernet48 97 tenGigE48 49 10000 0
Ethernet49 98 tenGigE49 49 10000 Ethernet49 98 tenGigE49 49 10000 0
Ethernet50 99 tenGigE50 49 10000 Ethernet50 99 tenGigE50 49 10000 0
Ethernet51 100 tenGigE51 49 10000 Ethernet51 100 tenGigE51 49 10000 0
Ethernet52 101 tenGigE52 50 10000 Ethernet52 101 tenGigE52 50 10000 0
Ethernet53 102 tenGigE53 50 10000 Ethernet53 102 tenGigE53 50 10000 0
Ethernet54 103 tenGigE54 50 10000 Ethernet54 103 tenGigE54 50 10000 0
Ethernet55 104 tenGigE55 50 10000 Ethernet55 104 tenGigE55 50 10000 0
Ethernet56 81 tenGigE56 51 10000 Ethernet56 77 tenGigE56 51 10000 0
Ethernet57 82 tenGigE57 51 10000 Ethernet57 78 tenGigE57 51 10000 0
Ethernet58 83 tenGigE58 51 10000 Ethernet58 79 tenGigE58 51 10000 0
Ethernet59 84 tenGigE59 51 10000 Ethernet59 80 tenGigE59 51 10000 0
Ethernet60 105 tenGigE60 52 10000 Ethernet60 105 tenGigE60 52 10000 0
Ethernet61 106 tenGigE61 52 10000 Ethernet61 106 tenGigE61 52 10000 0
Ethernet62 107 tenGigE62 52 10000 Ethernet62 107 tenGigE62 52 10000 0
Ethernet63 108 tenGigE63 52 10000 Ethernet63 108 tenGigE63 52 10000 0
Ethernet64 109 tenGigE64 53 10000 Ethernet64 109 tenGigE64 53 10000 0
Ethernet65 110 tenGigE65 53 10000 Ethernet65 110 tenGigE65 53 10000 0
Ethernet66 111 tenGigE66 53 10000 Ethernet66 111 tenGigE66 53 10000 0
Ethernet67 112 tenGigE67 53 10000 Ethernet67 112 tenGigE67 53 10000 0
Ethernet68 77 tenGigE68 54 10000 Ethernet68 81 tenGigE68 54 10000 0
Ethernet69 78 tenGigE69 54 10000 Ethernet69 82 tenGigE69 54 10000 0
Ethernet70 79 tenGigE70 54 10000 Ethernet70 83 tenGigE70 54 10000 0
Ethernet71 80 tenGigE71 54 10000 Ethernet71 84 tenGigE71 54 10000 0

View File

@ -1 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td2-as5812-72x10G.config.bcm SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td2-as5812t-72x10G.config.bcm

View File

@ -1,148 +0,0 @@
os=unix
bcm_stat_flags=0
parity_enable=0
parity_correction=0
bcm_num_cos=8
l2_mem_entries=32768
l3_mem_entries=16384
l3_alpm_enable=2
ipv6_lpm_128b_enable=1
mmu_lossless=0
lls_num_l2uc=12
module_64ports=0
#SFI
serdes_if_type=9
port_init_cl72=0
phy_an_c73=5 # TSCMOD_CL73_CL37
#sdk6.5.5 only supports 156(default) or 125
#xgxs_lcpll_xtal_refclk=1
tslam_dma_enable=1
table_dma_enable=1
#for 72 ports with 48 10G ports and 6 40G ports for breakout mode
pbmp_oversubscribe=0x1fffffffffffffffffe
pbmp_xport_xe=0x1fffffffffffffffffe
rate_ext_mdio_divisor=96
#SFP+ 1-4 from WC3
portmap_1=13:10
portmap_2=14:10
portmap_3=15:10
portmap_4=16:10
#SFP+ 5-8 from WC5
portmap_5=21:10
portmap_6=22:10
portmap_7=23:10
portmap_8=24:10
#SFP+ 9-12 from WC6
portmap_9=25:10
portmap_10=26:10
portmap_11=27:10
portmap_12=28:10
#SFP+ 13-16 from WC7
portmap_13=29:10
portmap_14=30:10
portmap_15=31:10
portmap_16=32:10
#SFP+ 17-20 from WC11
portmap_17=45:10
portmap_18=46:10
portmap_19=47:10
portmap_20=48:10
#SFP+ 21-24 from WC12
portmap_21=49:10
portmap_22=50:10
portmap_23=51:10
portmap_24=52:10
#SFP+ 25-28 from WC13
portmap_25=53:10
portmap_26=54:10
portmap_27=55:10
portmap_28=56:10
#SFP+ 29-32 from WC14
portmap_29=57:10
portmap_30=58:10
portmap_31=59:10
portmap_32=60:10
#SFP+ 33-36 from WC15
portmap_33=61:10
portmap_34=62:10
portmap_35=63:10
portmap_36=64:10
#SFP+ 37-40 from WC16
portmap_37=65:10
portmap_38=66:10
portmap_39=67:10
portmap_40=68:10
#SFP+ 41-44 from WC17
portmap_41=69:10
portmap_42=70:10
portmap_43=71:10
portmap_44=72:10
#SFP+ 45-48 from WC18
portmap_45=73:10
portmap_46=74:10
portmap_47=75:10
portmap_48=76:10
# QSFP+ 49/WC24/port 49
portmap_49=97:10
portmap_50=98:10
portmap_51=99:10
portmap_52=100:10
# QSFP+ 51/WC25/port 50
portmap_53=101:10
portmap_54=102:10
portmap_55=103:10
portmap_56=104:10
# QSFP+ 53/WC20/port 51
portmap_57=81:10
portmap_58=82:10
portmap_59=83:10
portmap_60=84:10
# QSFP+ 50/WC26/port 52
portmap_61=105:10
portmap_62=106:10
portmap_63=107:10
portmap_64=108:10
# QSFP+ 52/WC27/port 53
portmap_65=109:10
portmap_66=110:10
portmap_67=111:10
portmap_68=112:10
# QSFP+ 54/WC19/port 54
portmap_69=77:10
portmap_70=78:10
portmap_71=79:10
portmap_72=80:10
# L3 ECMP
# - In Trident2, VP LAGs share the same table as ECMP group table.
# The first N entries are reserved for VP LAGs, where N is the value of the
# config property "max_vp_lags". By default this was set to 256
l3_max_ecmp_mode=1
max_vp_lags=0
stable_size=0x2000000

View File

@ -0,0 +1,194 @@
bcm_num_cos=8
bcm_stat_flags=0
bcm_stat_interval=2000000
bcm_tunnel_term_compatible_mode=1
cdma_timeout_usec=3000000
fpem_mem_entries=16384
ipv6_lpm_128b_enable=0x1
ifp_inports_support_enable=1
l2xmsg_mode=1
l2_mem_entries=32768
l3_alpm_enable=2
l3_max_ecmp_mode=1
l3_mem_entries=16384
l3_alpm_ipv6_128b_bkt_rsvd=1
load_firmware=0x101
max_vp_lags=0
module_64ports=1
miim_intr_enable=0
mem_cache_enable=0
mdio_output_delay=15
os=unix
oversubscribe_mode=1
parity_enable=0
port_flex_enable=1
parity_correction=0
phy_ext_rom_boot_xe=0
phy_aux_voltage_enable=1
#for 72 ports with 48 10G ports and 6 40G ports for breakout mode
pbmp_xport_xe=0x7fffffffffffffffffe
pbmp_oversubscribe=0x7fffffffffffffffffe
rate_ext_mdio_divisor=96
schan_intr_enable=0
skip_L2_USER_ENTRY=0
stable_size=0x2000000
stable_size=0x5500000 ;Specify the stable cache size in bytes used for Warm boot operations
tdma_timeout_usec=3000000
#port-lanes configuration
portmap_1=14:10
portmap_2=13:10
portmap_3=16:10
portmap_4=15:10
port_phy_addr_1=0x1
port_phy_addr_2=0x0
port_phy_addr_3=0x3
port_phy_addr_4=0x2
portmap_5=22:10
portmap_6=21:10
portmap_7=24:10
portmap_8=23:10
port_phy_addr_5=0x5
port_phy_addr_6=0x4
port_phy_addr_7=0x7
port_phy_addr_8=0x6
portmap_9=26:10
portmap_10=25:10
portmap_11=28:10
portmap_12=27:10
port_phy_addr_9=0x9
port_phy_addr_10=0x8
port_phy_addr_11=0xb
port_phy_addr_12=0xa
portmap_13=30:10
portmap_14=29:10
portmap_15=32:10
portmap_16=31:10
port_phy_addr_13=0x21
port_phy_addr_14=0x20
port_phy_addr_15=0x23
port_phy_addr_16=0x22
portmap_17=46:10
portmap_18=45:10
portmap_19=48:10
portmap_20=47:10
port_phy_addr_17=0x25
port_phy_addr_18=0x24
port_phy_addr_19=0x27
port_phy_addr_20=0x26
portmap_21=50:10
portmap_22=49:10
portmap_23=52:10
portmap_24=51:10
port_phy_addr_21=0x29
port_phy_addr_22=0x28
port_phy_addr_23=0x2b
port_phy_addr_24=0x2a
portmap_25=54:10
portmap_26=53:10
portmap_27=56:10
portmap_28=55:10
port_phy_addr_25=0x41
port_phy_addr_26=0x40
port_phy_addr_27=0x43
port_phy_addr_28=0x42
portmap_29=58:10
portmap_30=57:10
portmap_31=60:10
portmap_32=59:10
port_phy_addr_29=0x45
port_phy_addr_30=0x44
port_phy_addr_31=0x47
port_phy_addr_32=0x46
portmap_33=62:10
portmap_34=61:10
portmap_35=64:10
portmap_36=63:10
port_phy_addr_33=0x49
port_phy_addr_34=0x48
port_phy_addr_35=0x4b
port_phy_addr_36=0x4a
portmap_37=66:10
portmap_38=65:10
portmap_39=68:10
portmap_40=67:10
port_phy_addr_37=0x61
port_phy_addr_38=0x60
port_phy_addr_39=0x63
port_phy_addr_40=0x62
portmap_41=70:10
portmap_42=69:10
portmap_43=72:10
portmap_44=71:10
port_phy_addr_41=0x65
port_phy_addr_42=0x64
port_phy_addr_43=0x67
port_phy_addr_44=0x66
portmap_45=74:10
portmap_46=73:10
portmap_47=76:10
portmap_48=75:10
port_phy_addr_45=0x69
port_phy_addr_46=0x68
port_phy_addr_47=0x6b
port_phy_addr_48=0x6a
#port_49
portmap_49=97:10
portmap_50=98:10
portmap_51=99:10
portmap_52=100:10
#port_50
portmap_53=101:10
portmap_54=102:10
portmap_55=103:10
portmap_56=104:10
#port_51
portmap_57=77:10
portmap_58=78:10
portmap_59=79:10
portmap_60=80:10
#port_52
portmap_61=105:10
portmap_62=106:10
portmap_63=107:10
portmap_64=108:10
#port_53
portmap_65=109:10
portmap_66=110:10
portmap_67=111:10
portmap_68=112:10
#port_54
portmap_69=81:10
portmap_70=82:10
portmap_71=83:10
portmap_72=84:10

View File

@ -1,162 +1,94 @@
# LED setting for active # LED setting for active
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# for as5812_54x (48xg+6qxg) # for as5812_54t (48xg+6qxg)
# #
# on green - if link up # on green - if link up
# off - if link down # off - if link down
# blink - if active # blink - if active
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=0
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=1
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=2
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=4
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=5
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=6
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=8
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=9
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=10
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=12
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=13
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=14
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=16
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=17
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=18
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=19
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=20
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=21
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=22
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=23
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=24
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=25
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=26
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=27
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=28
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=29
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=30
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=31
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=32
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=33
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=34
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=35
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=36
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=37
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=38
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=39
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=40
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=41
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=42
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=43
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=44
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=45
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=46
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=47
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=48
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=49
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=50
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=51
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=52
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=53
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=54
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=55
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=56
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=57
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=58
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=59
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=61
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=62
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_63=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_62=1
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_61=2
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=3
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_59=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_58=5
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_57=6
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=7
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_55=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_54=9
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_53=10
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=11
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_51=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_50=13
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_49=14
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=15
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_35=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_34=17
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_33=18
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=19
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_39=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_38=21
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_37=22
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=23
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_43=24
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_42=25
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_41=26
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=27
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_47=28
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_46=29
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_45=30
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=31
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_31=32
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_30=33
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_29=34
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=35
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_27=36
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_26=37
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_25=38
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=39
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_23=40
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_22=41
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_21=42
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=43
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_19=44
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_18=45
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_17=46
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=47
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_3=48
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_2=49
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_1=50
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=51
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_7=52
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_6=53
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_5=54
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=55
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_11=56
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_10=57
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_9=58
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=59
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_15=60
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_14=61
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_13=62
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63
m xlmac_rx_ctrl.xe0-xe47 STRICT_PREAMBLE=0
link on
link off
m CMIC_LEDUP0_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=12 REMAP_PORT_1=13 REMAP_PORT_2=14 REMAP_PORT_3=15
m CMIC_LEDUP0_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=8 REMAP_PORT_5=9 REMAP_PORT_6=10 REMAP_PORT_7=11
m CMIC_LEDUP0_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=4 REMAP_PORT_9=5 REMAP_PORT_10=6 REMAP_PORT_11=7
m CMIC_LEDUP0_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=0 REMAP_PORT_13=1 REMAP_PORT_14=2 REMAP_PORT_15=3
m CMIC_LEDUP0_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=16 REMAP_PORT_17=17 REMAP_PORT_18=18 REMAP_PORT_19=19
m CMIC_LEDUP0_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=63 REMAP_PORT_21=62 REMAP_PORT_22=61 REMAP_PORT_23=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=63 REMAP_PORT_25=62 REMAP_PORT_26=61 REMAP_PORT_27=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=63 REMAP_PORT_29=62 REMAP_PORT_30=61 REMAP_PORT_31=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=63 REMAP_PORT_33=62 REMAP_PORT_34=61 REMAP_PORT_35=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=28 REMAP_PORT_37=29 REMAP_PORT_38=30 REMAP_PORT_39=31
m CMIC_LEDUP0_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=24 REMAP_PORT_41=25 REMAP_PORT_42=26 REMAP_PORT_43=27
m CMIC_LEDUP0_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=20 REMAP_PORT_45=21 REMAP_PORT_46=22 REMAP_PORT_47=23
m CMIC_LEDUP0_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=32 REMAP_PORT_49=33 REMAP_PORT_50=34 REMAP_PORT_51=35
m CMIC_LEDUP0_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=63 REMAP_PORT_53=62 REMAP_PORT_54=61 REMAP_PORT_55=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=63 REMAP_PORT_57=62 REMAP_PORT_58=61 REMAP_PORT_59=60
m CMIC_LEDUP0_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=63 REMAP_PORT_61=62 REMAP_PORT_62=61 REMAP_PORT_63=60
m CMIC_LEDUP1_PORT_ORDER_REMAP_0_3 REMAP_PORT_0=63 REMAP_PORT_1=63 REMAP_PORT_2=63 REMAP_PORT_3=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_4_7 REMAP_PORT_4=63 REMAP_PORT_5=63 REMAP_PORT_6=63 REMAP_PORT_7=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_8_11 REMAP_PORT_8=63 REMAP_PORT_9=63 REMAP_PORT_10=63 REMAP_PORT_11=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_12_15 REMAP_PORT_12=63 REMAP_PORT_13=63 REMAP_PORT_14=63 REMAP_PORT_15=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_16_19 REMAP_PORT_16=19 REMAP_PORT_17=18 REMAP_PORT_18=17 REMAP_PORT_19=16
m CMIC_LEDUP1_PORT_ORDER_REMAP_20_23 REMAP_PORT_20=15 REMAP_PORT_21=14 REMAP_PORT_22=13 REMAP_PORT_23=12
m CMIC_LEDUP1_PORT_ORDER_REMAP_24_27 REMAP_PORT_24=7 REMAP_PORT_25=6 REMAP_PORT_26=5 REMAP_PORT_27=4
m CMIC_LEDUP1_PORT_ORDER_REMAP_28_31 REMAP_PORT_28=3 REMAP_PORT_29=2 REMAP_PORT_30=1 REMAP_PORT_31=0
m CMIC_LEDUP1_PORT_ORDER_REMAP_32_35 REMAP_PORT_32=23 REMAP_PORT_33=22 REMAP_PORT_34=21 REMAP_PORT_35=20
m CMIC_LEDUP1_PORT_ORDER_REMAP_36_39 REMAP_PORT_36=63 REMAP_PORT_37=63 REMAP_PORT_38=63 REMAP_PORT_39=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_40_43 REMAP_PORT_40=63 REMAP_PORT_41=63 REMAP_PORT_42=63 REMAP_PORT_43=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_44_47 REMAP_PORT_44=63 REMAP_PORT_45=63 REMAP_PORT_46=63 REMAP_PORT_47=63
m CMIC_LEDUP1_PORT_ORDER_REMAP_48_51 REMAP_PORT_48=11 REMAP_PORT_49=10 REMAP_PORT_50=9 REMAP_PORT_51=8
m CMIC_LEDUP1_PORT_ORDER_REMAP_52_55 REMAP_PORT_52=24 REMAP_PORT_53=25 REMAP_PORT_54=26 REMAP_PORT_55=27
m CMIC_LEDUP1_PORT_ORDER_REMAP_56_59 REMAP_PORT_56=28 REMAP_PORT_57=29 REMAP_PORT_58=30 REMAP_PORT_59=31
m CMIC_LEDUP1_PORT_ORDER_REMAP_60_63 REMAP_PORT_60=32 REMAP_PORT_61=33 REMAP_PORT_62=34 REMAP_PORT_63=35
led 0 stop led 0 stop
led 0 prog \ led 0 prog \
06 FE 80 D2 19 71 08 E0 60 FE E9 D2 0F 75 10 81 \ 02 F9 42 80 02 F7 42 00 02 F8 42 00 02 F4 42 48 \
61 FD 02 3F 60 FF 28 32 0F 87 67 4A 96 FF 06 FF \ 02 F3 42 24 06 F5 D2 00 74 1E 02 F5 42 05 67 4B \
D2 2B 74 16 02 1F 60 FF 28 32 0F 87 67 4A 96 FF \ 86 F8 06 F3 D6 F8 74 1E 86 F0 3E F4 06 F8 88 4A \
06 FF D2 13 74 28 02 0F 60 FF 28 32 0F 87 67 4A \ 03 75 3C 4A 04 71 41 67 7D 67 91 57 67 7D 67 91 \
96 FF 06 FF D2 0B 74 3A 3A 48 32 07 32 08 C7 32 \ 57 67 91 67 7D 57 67 7D 67 7D 57 06 F8 88 80 4A \
04 C7 97 71 57 77 69 32 00 32 01 B7 97 71 63 32 \ 00 27 97 75 46 90 4A 00 27 4A 01 27 B7 97 71 62 \
0E 77 6B 26 FD 97 27 77 6B 32 0F 87 57 00 00 00 77 2C 06 F5 D6 F0 74 75 02 F5 4A 07 37 4E 07 02 \
F0 42 00 4E 07 06 F5 0A 07 71 46 77 2C 16 F7 06 \
F9 17 4D DA 07 74 8E 12 F7 52 00 86 F9 57 86 F7 \
57 16 F7 06 F9 07 4D DA 07 74 A2 12 F7 52 00 86 \
F9 57 86 F7 57 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
led 0 start led 0 start
led 1 stop led 1 stop
led 1 prog \ led 1 prog \
06 FE 80 D2 19 71 08 E0 60 FE E9 D2 0F 75 10 81 \ 02 F9 42 80 02 F7 42 00 02 F8 42 00 02 F4 42 36 \
61 FD 02 20 67 89 02 24 67 89 02 10 67 89 02 28 \ 02 F3 42 24 02 F6 17 4E 01 67 AD 86 F8 67 AD 86 \
67 89 02 2C 67 89 02 0C 67 89 02 2C 67 79 02 28 \ F8 67 AD 86 F8 67 AD 86 F8 06 F8 D2 18 74 19 12 \
67 79 02 24 67 79 02 20 67 79 02 10 67 79 02 0C \ 01 02 10 60 F8 67 7E 12 01 02 0C 60 F8 67 7E 12 \
67 79 02 0B 60 FF 28 32 0F 87 67 56 96 FF 06 FF \ 01 02 04 60 F8 67 7E 12 01 02 00 60 F8 67 7E 12 \
D2 FF 74 46 3A 36 32 07 32 08 C7 32 04 C7 97 71 \ 01 02 08 60 F8 67 7E 12 01 02 14 60 F8 67 7E 02 \
63 77 75 32 00 32 01 B7 97 71 6F 32 0E 77 77 26 \ F6 07 4E 01 02 18 60 F8 67 AD 86 F8 06 F3 D6 F8 \
FD 97 27 77 77 32 0F 87 57 12 A0 F8 15 1A 01 75 \ 74 68 86 F0 3E F4 16 E0 5A 00 71 AD 77 A2 1A 00 \
85 28 67 56 57 32 0F 87 57 12 A0 F8 15 1A 01 71 \ 75 AD 77 A2 02 F6 4A 01 71 9F 06 F8 88 4A 03 75 \
A1 28 67 56 80 28 67 56 80 28 67 56 80 28 67 56 \ 95 4A 04 71 9A 67 DF 67 E3 57 67 E3 67 DF 57 67 \
57 32 0F 87 32 0F 87 32 0F 87 32 0F 87 57 00 00 E3 57 02 F6 4A 01 71 AA 67 DF 67 DF 57 06 F8 88 \
80 4A 00 27 97 75 A2 90 4A 00 27 4A 01 27 B7 97 \
71 C4 77 84 06 F5 D6 F0 74 D7 02 F5 4A 07 37 4E \
07 02 F0 42 00 4E 07 06 F5 0A 07 71 A2 77 84 22 \
01 77 E5 22 00 16 F7 06 F9 97 4D DA 07 74 F6 12 \
F7 52 00 86 F9 57 86 F7 57 00 00 00 00 00 00 00
led 1 start led 1 start
link on
led auto on
set RCError=off

View File

@ -1,4 +1,4 @@
obj-m:= x86-64-accton-as5812-54t-cpld.o x86-64-accton-as5812-54t-fan.o \ obj-m:= x86-64-accton-as5812-54t-cpld.o x86-64-accton-as5812-54t-fan.o \
x86-64-accton-as5812-54t-leds.o x86-64-accton-as5812-54t-sfp.o \ x86-64-accton-as5812-54t-leds.o \
x86-64-accton-as5812-54t-psu.o ym2651y.o cpr_4011_4mxx.o x86-64-accton-as5812-54t-psu.o ym2651y.o cpr_4011_4mxx.o

View File

@ -29,13 +29,8 @@
#include <linux/leds.h> #include <linux/leds.h>
#include <linux/slab.h> #include <linux/slab.h>
extern int accton_i2c_cpld_read(unsigned short cpld_addr, u8 reg); extern int as5812_54t_cpld_read(unsigned short cpld_addr, u8 reg);
extern int accton_i2c_cpld_write(unsigned short cpld_addr, u8 reg, u8 value); extern int as5812_54t_cpld_write(unsigned short cpld_addr, u8 reg, u8 value);
extern void led_classdev_unregister(struct led_classdev *led_cdev);
extern int led_classdev_register(struct device *parent, struct led_classdev *led_cdev);
extern void led_classdev_resume(struct led_classdev *led_cdev);
extern void led_classdev_suspend(struct led_classdev *led_cdev);
#define DRVNAME "as5812_54t_led" #define DRVNAME "as5812_54t_led"
@ -223,12 +218,12 @@ static u8 led_light_mode_to_reg_val(enum led_type type,
static int accton_as5812_54t_led_read_value(u8 reg) static int accton_as5812_54t_led_read_value(u8 reg)
{ {
return accton_i2c_cpld_read(0x60, reg); return as5812_54t_cpld_read(0x60, reg);
} }
static int accton_as5812_54t_led_write_value(u8 reg, u8 value) static int accton_as5812_54t_led_write_value(u8 reg, u8 value)
{ {
return accton_i2c_cpld_write(0x60, reg, value); return as5812_54t_cpld_write(0x60, reg, value);
} }
static void accton_as5812_54t_led_update(void) static void accton_as5812_54t_led_update(void)
@ -555,11 +550,6 @@ static int __init accton_as5812_54t_led_init(void)
{ {
int ret; int ret;
extern int platform_accton_as5812_54t(void);
if (!platform_accton_as5812_54t()) {
return -ENODEV;
}
ret = platform_driver_register(&accton_as5812_54t_led_driver); ret = platform_driver_register(&accton_as5812_54t_led_driver);
if (ret < 0) { if (ret < 0) {
goto exit; goto exit;

View File

@ -159,7 +159,6 @@ kos = [
'modprobe x86-64-accton-as5812-54t-cpld' , 'modprobe x86-64-accton-as5812-54t-cpld' ,
'modprobe cpr_4011_4mxx' , 'modprobe cpr_4011_4mxx' ,
'modprobe ym2651y' , 'modprobe ym2651y' ,
'modprobe x86-64-accton-as5812-54t-sfp' ,
'modprobe x86-64-accton-as5812-54t-psu' , 'modprobe x86-64-accton-as5812-54t-psu' ,
'modprobe x86-64-accton-as5812-54t-fan' , 'modprobe x86-64-accton-as5812-54t-fan' ,
'modprobe x86-64-accton-as5812-54t-leds' ] 'modprobe x86-64-accton-as5812-54t-leds' ]

View File

@ -21,7 +21,7 @@ KERNEL_SRC := /lib/modules/$(KVERSION)
MOD_SRC_DIR:= $(shell pwd) MOD_SRC_DIR:= $(shell pwd)
MODULE_DIRS := as7712-32x as5712-54x as7816-64x as7716-32x as7716-32xb as7312-54x MODULE_DIRS := as7712-32x as5712-54x as7816-64x as7716-32x as7716-32xb as7312-54x
MODULE_DIRS += as7326-56x as6712-32x as7726-32x as4630-54pe minipack as5812-54x MODULE_DIRS += as7326-56x as6712-32x as7726-32x as4630-54pe minipack as5812-54x
MODULE_DIRS += as5835-54x as9716-32d as5835-54t as7312-54xs as7315-27xb as5812-54x MODULE_DIRS += as5835-54x as9716-32d as5835-54t as7312-54xs as7315-27xb as5812-54t
MODULE_DIR := modules MODULE_DIR := modules
UTILS_DIR := utils UTILS_DIR := utils
SERVICE_DIR := service SERVICE_DIR := service