[U-Boot] [PATCH 1/3] drivers: net: fsl_enetc: Add 2.5Gbps to supported link speeds
Alex Marginean
alexandru.marginean at nxp.com
Thu Nov 14 16:58:45 UTC 2019
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 at nxp.com>
---
I have these patches on top of the following two patch sets, they don't apply
cleanly without them:
https://patchwork.ozlabs.org/project/uboot/list/?series=142879
https://patchwork.ozlabs.org/project/uboot/list/?series=142858
drivers/net/fsl_enetc.c | 5 +++--
1 file 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);
}
--
2.17.1
More information about the U-Boot
mailing list