提交 b9d57f94 编写于 作者: M Matt Waddel 提交者: Greg Ungerer

m68knommu: correct the mii calculations for 532x ColdFire FEC

Signed-off-by: NMatt Waddel <Matt.Waddel@freescale.com>
Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
上级 d4732d3c
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册