diff options
author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-08-18 21:01:19 (GMT) |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-08-28 15:16:54 (GMT) |
commit | eec567a67e00d1ed8d941e9098b7d421f4091abf (patch) | |
tree | dedad365b22f5893a7483d5bd3549ab61b8a166d /cpu/mcf532x | |
parent | d53cf6a9c7423cba668b867978648645f71c3090 (diff) | |
download | u-boot-eec567a67e00d1ed8d941e9098b7d421f4091abf.tar.xz |
ColdFire: I2C fix for multiple platforms
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'cpu/mcf532x')
-rw-r--r-- | cpu/mcf532x/speed.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |