diff options
author | Matt Waddel <Matt.Waddel@freescale.com> | 2009-01-13 08:14:20 +0100 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-01-27 07:42:03 +0100 |
commit | b9d57f94bb0ed56a5a2b58552a9ff4453013ff0b (patch) | |
tree | c2e3c567b1de887db169079e2d2ad447bbca6729 /drivers/net/fec.c | |
parent | m68knommu: add ColdFire M532x to the FEC configuration options (diff) | |
download | linux-b9d57f94bb0ed56a5a2b58552a9ff4453013ff0b.tar.xz linux-b9d57f94bb0ed56a5a2b58552a9ff4453013ff0b.zip |
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>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r-- | drivers/net/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 7e33c129d51c..2769083bfe83 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1698,7 +1698,7 @@ static void __inline__ fec_set_mii(struct net_device *dev, struct fec_enet_priva /* * Set MII speed to 2.5 MHz */ - fep->phy_speed = ((((MCF_CLK / 2) / (2500000 / 10)) + 5) / 10) * 2; + fep->phy_speed = (MCF_CLK / 3) / (2500000 * 2 ) * 2; fecp->fec_mii_speed = fep->phy_speed; fec_restart(dev, 0); |