diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-06-28 10:29:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-28 19:23:39 +0300 |
commit | 5b0d7d7da64b42175a41b9c39de0a512216621cd (patch) | |
tree | df3b275ccb3f188eb395a27373a8b2b93492efb5 /drivers/net/ethernet/stmicro/stmmac/common.h | |
parent | 900a81cc119b89c1525197a6d7f714ef6af38c5e (diff) | |
download | linux-5b0d7d7da64b42175a41b9c39de0a512216621cd.tar.xz |
net: stmmac: Add the missing speeds that XGMAC supports
XGMAC supports following speeds:
- 10G XGMII
- 5G XGMII
- 2.5G XGMII
- 2.5G GMII
- 1G GMII
- 100M MII
- 10M MII
Add them to the stmmac driver.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/common.h')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 14d8f6d7cb9a..9e8f4dbdcc22 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/drivers/net/ethernet/stmicro/stmmac/common.h @@ -392,8 +392,12 @@ struct mac_link { u32 speed100; u32 speed1000; u32 speed2500; - u32 speed10000; u32 duplex; + struct { + u32 speed2500; + u32 speed5000; + u32 speed10000; + } xgmii; }; struct mii_regs { |