summaryrefslogtreecommitdiff
path: root/drivers/net/fsl_enetc.c
diff options
context:
space:
mode:
authorAlex Marginean <alexandru.marginean@nxp.com>2019-11-14 18:58:45 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2019-12-09 09:47:43 -0600
commit307f8a6d1f034fc23aa7a42fa121f7fa011a33e4 (patch)
tree34f6b64aa483f0c412d9e999c0687932a8d2684a /drivers/net/fsl_enetc.c
parent17bd7eae72fed240ff806c14b53fd6ff281ee311 (diff)
drivers: net: fsl_enetc: Add 2.5Gbps to supported link speeds
The original code enabled link speeds up to 1Gbps, but the interface can go up to 2.5G, enable that speed to in PHY AN mask. Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/fsl_enetc.c')
-rw-r--r--drivers/net/fsl_enetc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index c94ba240f8..64dc244da2 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -215,8 +215,9 @@ static void enetc_config_phy(struct udevice *dev)
if (!priv->phy)
return;
- supported = GENMASK(6, 0); /* speeds up to 1G & AN */
- priv->phy->advertising = priv->phy->supported & supported;
+ supported = PHY_GBIT_FEATURES | SUPPORTED_2500baseX_Full;
+ priv->phy->supported &= supported;
+ priv->phy->advertising &= supported;
phy_config(priv->phy);
}