summaryrefslogtreecommitdiff
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorAlex Marginean <alexandru.marginean@nxp.com>2020-01-07 16:48:05 +0200
committerJason Liu <jason.hui.liu@nxp.com>2020-02-26 04:17:38 +0800
commit0b5b1c553d1c2e7ecffe467cbdf7f37ad0521ee2 (patch)
tree115165bfa1a20b092272dc54980c32b34297247a /drivers/net/phy
parent9c284f5b8c06e26dc4b104dd7ad4ac9d2b7c669a (diff)
drivers: net: phylink: in-band AN for USXGMII
USXGMII supports passing link information in-band between PHY and MAC PCS, add it to the list of protocls that support in-band AN mode. TODO: Add 2500baseT, 5GbaseT, 10GbaseT. Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com> (cherry picked from commit c163d0bf3d7b1860192ec3f8baec3eca99931725)
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/phylink.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index b059cc989240..2e41c69ea69a 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -296,6 +296,16 @@ static int phylink_parse_mode(struct phylink *pl, struct fwnode_handle *fwnode)
phylink_set(pl->supported, 2500baseX_Full);
break;
+ case PHY_INTERFACE_MODE_USXGMII:
+ phylink_set(pl->supported, 10baseT_Half);
+ phylink_set(pl->supported, 10baseT_Full);
+ phylink_set(pl->supported, 100baseT_Half);
+ phylink_set(pl->supported, 100baseT_Full);
+ phylink_set(pl->supported, 1000baseT_Half);
+ phylink_set(pl->supported, 1000baseT_Full);
+ phylink_set(pl->supported, 2500baseX_Full);
+ break;
+
case PHY_INTERFACE_MODE_10GKR:
phylink_set(pl->supported, 10baseT_Half);
phylink_set(pl->supported, 10baseT_Full);