summaryrefslogtreecommitdiffstats
path: root/cpu/mcf523x/speed.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/mcf523x/speed.c')
-rw-r--r--cpu/mcf523x/speed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/mcf523x/speed.c b/cpu/mcf523x/speed.c
index 247d3188bb..1bda2d482e 100644
--- a/cpu/mcf523x/speed.c
+++ b/cpu/mcf523x/speed.c
@@ -45,5 +45,9 @@ int get_clocks(void)
gd->bus_clk = CFG_CLK;
gd->cpu_clk = (gd->bus_clk * 2);
+#ifdef CONFIG_FSL_I2C
+ gd->i2c1_clk = gd->bus_clk;
+#endif
+
return (0);
}
OpenPOWER on IntegriCloud