]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/mcf523x/speed.c
rename CFG_ macros to CONFIG_SYS
[people/ms/u-boot.git] / cpu / mcf523x / speed.c
index 509109d0ed0049b22c7cf500046a30173f771f55..6096ba41444c410400be753aca3628bc2a955a8b 100644 (file)
@@ -41,8 +41,13 @@ int get_clocks(void)
        pll->syncr = PLL_SYNCR_MFD(1);
 
        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);
 }