|
@@ -1407,7 +1407,7 @@ static int fec_enet_mii_init(struct platform_device *pdev)
|
|
* Reference Manual has an error on this, and gets fixed on i.MX6Q
|
|
* Reference Manual has an error on this, and gets fixed on i.MX6Q
|
|
* document.
|
|
* document.
|
|
*/
|
|
*/
|
|
- fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ahb), 5000000);
|
|
|
|
|
|
+ fep->phy_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000);
|
|
if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
|
|
if (id_entry->driver_data & FEC_QUIRK_ENET_MAC)
|
|
fep->phy_speed--;
|
|
fep->phy_speed--;
|
|
fep->phy_speed <<= 1;
|
|
fep->phy_speed <<= 1;
|