summaryrefslogtreecommitdiff
path: root/drivers/net/fec.c
diff options
context:
space:
mode:
authorMatt Waddel <Matt.Waddel@freescale.com>2009-01-13 10:14:20 +0300
committerGreg Ungerer <gerg@uclinux.org>2009-01-27 09:42:03 +0300
commitb9d57f94bb0ed56a5a2b58552a9ff4453013ff0b (patch)
treec2e3c567b1de887db169079e2d2ad447bbca6729 /drivers/net/fec.c
parentd4732d3c59b84bb093e11c8f755f32801b4bf86d (diff)
downloadlinux-b9d57f94bb0ed56a5a2b58552a9ff4453013ff0b.tar.xz
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.c2
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);