Hi Team,
I checked ethernet functionality with Kernel Version 4.1.15. But I found the same speed issue.
I have modified the gpr register to indicate the External Clock Initialization.
regmap_update_bits(gpr, IOMUXC_GPR1,IMX6SL_GPR1_FEC_CLOCK_MUX2_SEL_MASK, 1);
regmap_update_bits(gpr, IOMUXC_GPR1,IMX6SL_GPR1_FEC_CLOCK_MUX1_SEL_MASK, 0);
FEC phy Power Enable Functionality:
phy_register_fixup_for_uid(PHY_ID_KSZ9021,MICREL_PHY_ID_MASK,ksz9021rn_phy_fixup);
static int ksz9021rn_phy_fixup(struct phy_device *phydev)
{
if (IS_BUILTIN(CONFIG_PHYLIB)) {
/* min rx data delay */
phy_write(phydev, 0x0b, 0x8105);
phy_write(phydev, 0x0c, 0x0000);
/* max rx/tx clock delay, min rx/tx control delay */
phy_write(phydev, 0x0b, 0x8104);
phy_write(phydev, 0x0c, 0xf0f0);
phy_write(phydev, 0x0b, 0x104);
}
return 0;
}
Though I made changes there is no change in the speed parameter. Kindly help me to resolve this issue.
Thanks & Regards,
C.Himabindu.