diff options
author | Matthew Fettke <[matthew.fettke@gmail.com]> | 2008-02-04 15:38:20 -0600 |
---|---|---|
committer | John Rigby <jrigby@freescale.com> | 2008-03-31 15:09:08 -0600 |
commit | f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b (patch) | |
tree | ce257bd89e793dd65e3ab2dddb37bf27e24fa191 /cpu/mcf52x2/speed.c | |
parent | 44e5b9edab077aba6e9b849afa4b7fbd8fd7b02b (diff) | |
download | u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.zip u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.tar.gz u-boot-imx-f71d9d91a2cd9c30b2b6369f15c1a46c11537c2b.tar.bz2 |
ColdFire: Added MCF5275 cpu support.
Signed-off-by: Matthew Fettke <mfettke@videon-central.com>
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Acked-by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'cpu/mcf52x2/speed.c')
-rw-r--r-- | cpu/mcf52x2/speed.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpu/mcf52x2/speed.c b/cpu/mcf52x2/speed.c index bc1e200..85a5c4d 100644 --- a/cpu/mcf52x2/speed.c +++ b/cpu/mcf52x2/speed.c @@ -64,8 +64,18 @@ int get_clocks (void) #endif /* CONFIG_M5249 || CONFIG_M5253 */ +#if defined(CONFIG_M5275) + volatile pll_t *pll = (volatile pll_t *)(MMAP_PLL); + + /* Setup PLL */ + pll->syncr = 0x01080000; + while (!(pll->synsr & FMPLL_SYNSR_LOCK)); + pll->syncr = 0x01000000; + while (!(pll->synsr & FMPLL_SYNSR_LOCK)); +#endif + gd->cpu_clk = CFG_CLK; -#if defined(CONFIG_M5249) || defined(CONFIG_M5253) +#if defined(CONFIG_M5249) || defined(CONFIG_M5253) || defined(CONFIG_M5275) gd->bus_clk = gd->cpu_clk / 2; #else gd->bus_clk = gd->cpu_clk; |