]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
m68knommu: correct the mii calculations for 532x ColdFire FEC
authorMatt Waddel <Matt.Waddel@freescale.com>
Tue, 13 Jan 2009 07:14:20 +0000 (17:14 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 27 Jan 2009 06:42:03 +0000 (16:42 +1000)
Signed-off-by: Matt Waddel <Matt.Waddel@freescale.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
drivers/net/fec.c

index 7e33c129d51cb4d936fa16ea146b55721fa660ce..2769083bfe83a27265925e46e00462127885b739 100644 (file)
@@ -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);