S5PC100: Function to configure the SROMC registers.
[platform/kernel/u-boot.git] / cpu / mcf547x_8x / speed.c
index 389e7c9..2cee488 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);
 }