summaryrefslogtreecommitdiff
path: root/drivers/net/mpc512x_fec.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:54 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:43 -0500
commitfefb098b187caab34edc72df141125925c9bba62 (patch)
treee962092e6cacc356a79b3c20e94b6040c5d9d96b /drivers/net/mpc512x_fec.c
parentb28774966c933780e891998b472528ba0724b8e0 (diff)
downloadu-boot-imx-fefb098b187caab34edc72df141125925c9bba62.zip
u-boot-imx-fefb098b187caab34edc72df141125925c9bba62.tar.gz
u-boot-imx-fefb098b187caab34edc72df141125925c9bba62.tar.bz2
ppc: Move mpc512x clocks to arch_global_data
Move ips_clk and csb_clk into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/net/mpc512x_fec.c')
-rw-r--r--drivers/net/mpc512x_fec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mpc512x_fec.c b/drivers/net/mpc512x_fec.c
index ad57d56..427e0b8 100644
--- a/drivers/net/mpc512x_fec.c
+++ b/drivers/net/mpc512x_fec.c
@@ -304,7 +304,7 @@ int mpc512x_fec_init_phy (struct eth_device *dev, bd_t * bis)
* and do not drop the Preamble.
*/
out_be32(&fec->eth->mii_speed,
- (((gd->ips_clk / 1000000) / 5) + 1) << 1);
+ (((gd->arch.ips_clk / 1000000) / 5) + 1) << 1);
/*
* Reset PHY, then delay 300ns