From eec567a67e00d1ed8d941e9098b7d421f4091abf Mon Sep 17 00:00:00 2001 From: TsiChung Liew Date: Tue, 19 Aug 2008 03:01:19 +0600 Subject: ColdFire: I2C fix for multiple platforms Signed-off-by: TsiChung Liew --- cpu/mcf532x/speed.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpu/mcf532x/speed.c') diff --git a/cpu/mcf532x/speed.c b/cpu/mcf532x/speed.c index 001b9f4..a11e425 100644 --- a/cpu/mcf532x/speed.c +++ b/cpu/mcf532x/speed.c @@ -212,5 +212,10 @@ int get_clocks(void) { gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000; gd->cpu_clk = (gd->bus_clk * 3); + +#ifdef CONFIG_FSL_I2C + gd->i2c1_clk = gd->bus_clk; +#endif + return (0); } -- cgit v1.1