Skip to content

Commit 68c6b6c

Browse files
Daniel Coffeycfriedt
authored andcommitted
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. Signed-off-by: Daniel Coffey <[email protected]>
1 parent 7fe6930 commit 68c6b6c

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
@@ -236,7 +236,7 @@ static int phy_mc_ksz8081_static_cfg(const struct device *dev)
236236

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

0 commit comments

Comments
 (0)