]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mcf523x/speed.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / mcf523x / speed.c
index 247d3188bb200b143d0bd4dccc2043b2d0317f71..6096ba41444c410400be753aca3628bc2a955a8b 100644 (file)
@@ -42,8 +42,12 @@ int get_clocks(void)
 
        while (!(pll->synsr & PLL_SYNSR_LOCK));
 
-       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);
 }