projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'mimc200' into next
[oweals/u-boot.git]
/
cpu
/
mcf523x
/
speed.c
diff --git
a/cpu/mcf523x/speed.c
b/cpu/mcf523x/speed.c
index 509109d0ed0049b22c7cf500046a30173f771f55..6096ba41444c410400be753aca3628bc2a955a8b 100644
(file)
--- a/
cpu/mcf523x/speed.c
+++ b/
cpu/mcf523x/speed.c
@@
-41,8
+41,13
@@
int get_clocks(void)
pll->syncr = PLL_SYNCR_MFD(1);
while (!(pll->synsr & PLL_SYNSR_LOCK));
-
- gd->bus_clk = C
FG
_CLK;
+
+ gd->bus_clk = C
ONFIG_SYS
_CLK;
gd->cpu_clk = (gd->bus_clk * 2);
+
+#ifdef CONFIG_FSL_I2C
+ gd->i2c1_clk = gd->bus_clk;
+#endif
+
return (0);
}