Commit b9d57f94bb0ed56a5a2b58552a9ff4453013ff0b

Authored by Matt Waddel
Committed by Greg Ungerer
1 parent d4732d3c59

m68knommu: correct the mii calculations for 532x ColdFire FEC

Signed-off-by: Matt Waddel <Matt.Waddel@freescale.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1698,7 +1698,7 @@
1698 1698 /*
1699 1699 * Set MII speed to 2.5 MHz
1700 1700 */
1701   - fep->phy_speed = ((((MCF_CLK / 2) / (2500000 / 10)) + 5) / 10) * 2;
  1701 + fep->phy_speed = (MCF_CLK / 3) / (2500000 * 2 ) * 2;
1702 1702 fecp->fec_mii_speed = fep->phy_speed;
1703 1703  
1704 1704 fec_restart(dev, 0);