]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - cpu/mcf547x_8x/speed.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / mcf547x_8x / speed.c
index 389e7c99f5252f29dcc0f2a2bc5541ab1e26cb48..2cee4887ac9afe5d1924ab6178b3136433374f2d 100644 (file)
@@ -37,7 +37,12 @@ int get_clocks(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bus_clk = CFG_CLK;
+       gd->bus_clk = CONFIG_SYS_CLK;
        gd->cpu_clk = (gd->bus_clk * 2);
+
+#ifdef CONFIG_FSL_I2C
+       gd->i2c1_clk = gd->bus_clk;
+#endif
+
        return (0);
 }