mpc83xx: add support for more system clock performance controls
[oweals/u-boot.git] / cpu / mpc512x / fec.c
index 675b7a2e09e5475ef3d81291c145933a1801f1be..c226a8a5a20e0525057083ace34a5fcc1f7e3b44 100644 (file)
@@ -299,7 +299,7 @@ int mpc512x_fec_init_phy (struct eth_device *dev, bd_t * bis)
                 * Set MII_SPEED = (1/(mii_speed * 2)) * System Clock
                 * and do not drop the Preamble.
                 */
-               fec->eth->mii_speed = (((gd->ipb_clk / 1000000) / 5) + 1) << 1;
+               fec->eth->mii_speed = (((gd->ips_clk / 1000000) / 5) + 1) << 1;
 
                /*
                 * Reset PHY, then delay 300ns