diff options
| author | Tom Rini <[email protected]> | 2024-12-17 13:15:58 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-17 13:16:22 -0600 |
| commit | a4ee6396fe779b351c8ed5121f2c74d5f66bdaa5 (patch) | |
| tree | 3042d115eebc85c0c050a9e681bfd4b1caebbd34 /drivers | |
| parent | 3b3c7280b82b1f08807a070ac066cd02919dfde1 (diff) | |
| parent | 7cf57825eb4366a474ee0a13ef690d460f8c4775 (diff) | |
Merge tag 'u-boot-imx-next-20241217' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx into next
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/23877
- Add support for Apalis iMX8 1300MHz version.
- Don't advertise Gbit on (R)MII on the FEC controller.
- Fix srktool -c usage by removing spaces.
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/fec_mxc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index eca681b16d1..7d2170ae72c 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1162,6 +1162,7 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) { struct phy_device *phydev = NULL; int addr; + int ret; addr = device_get_phy_addr(priv, dev); #ifdef CFG_FEC_MXC_PHYADDR @@ -1175,6 +1176,17 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) if (!phydev) return -ENODEV; + switch (priv->interface) { + case PHY_INTERFACE_MODE_MII: + case PHY_INTERFACE_MODE_RMII: + ret = phy_set_supported(phydev, SPEED_100); + if (ret) + return ret; + break; + default: + break; + } + priv->phydev = phydev; priv->phydev->node = priv->phy_of_node; phy_config(phydev); |
