Skip to content

Commit 1e27f5f

Browse files
author
Daniel Coffey
committed
drivers: ethernet: ksz8081: support 25MHz RMII
Configure KSZ8081 phy drivers to set strapping mode override for RMII mode without setting reference clock to 50MHz when "RMII 25MHz" operation is selected in device tree node.
1 parent 31ef45e commit 1e27f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/phy/phy_microchip_ksz8081.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static int phy_mc_ksz8081_static_cfg(const struct device *dev)
235235

236236
omso &= ~PHY_MC_KSZ8081_OMSO_FACTORY_MODE_MASK &
237237
~PHY_MC_KSZ8081_OMSO_NAND_TREE_MASK;
238-
if (config->phy_iface == KSZ8081_RMII) {
238+
if (config->phy_iface == KSZ8081_RMII || config->phy_iface == KSZ8081_RMII_25MHZ) {
239239
omso &= ~PHY_MC_KSZ8081_OMSO_MII_OVERRIDE_MASK;
240240
omso |= PHY_MC_KSZ8081_OMSO_RMII_OVERRIDE_MASK;
241241
}

0 commit comments

Comments
 (0)