diff options
author | Markus Klotzbuecher <mk@denx.de> | 2006-07-12 15:26:01 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2006-07-12 15:26:01 +0200 |
commit | 090eb73510838c0e8c20d80eea0d7f9e774ff6b5 (patch) | |
tree | e64701554fe3f14e73d29657328e66ccee04c64f /cpu/mpc8xx/speed.c | |
parent | d6cc73e4e70a7f8712c52ef9d93a19a906cc3d4b (diff) | |
download | u-boot-imx-090eb73510838c0e8c20d80eea0d7f9e774ff6b5.zip u-boot-imx-090eb73510838c0e8c20d80eea0d7f9e774ff6b5.tar.gz u-boot-imx-090eb73510838c0e8c20d80eea0d7f9e774ff6b5.tar.bz2 |
Add support for TQM885D board.
Patch by Martin Krause, 20 Mar 2006
Signed-off-by: Martin Krause <martin.krause@tqs.de>
Diffstat (limited to 'cpu/mpc8xx/speed.c')
-rw-r--r-- | cpu/mpc8xx/speed.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpu/mpc8xx/speed.c b/cpu/mpc8xx/speed.c index 57f91c0..101d5f9 100644 --- a/cpu/mpc8xx/speed.c +++ b/cpu/mpc8xx/speed.c @@ -259,7 +259,11 @@ int get_clocks_866 (void) */ sccr_reg = immr->im_clkrst.car_sccr; sccr_reg &= ~SCCR_EBDF11; +#if defined(CONFIG_TQM885D) + if (gd->cpu_clk <= 80000000) { +#else if (gd->cpu_clk <= 66000000) { +#endif sccr_reg |= SCCR_EBDF00; /* bus division factor = 1 */ gd->bus_clk = gd->cpu_clk; } else { @@ -360,7 +364,8 @@ static long init_pll_866 (long clk) #endif /* CONFIG_8xx_CPUCLK_DEFAULT */ -#if defined(CONFIG_TQM8xxL) && !defined(CONFIG_TQM866M) +#if defined(CONFIG_TQM8xxL) && !defined(CONFIG_TQM866M) \ + && !defined(CONFIG_TQM885D) /* * Adjust sdram refresh rate to actual CPU clock * and set timebase source according to actual CPU clock @@ -384,6 +389,6 @@ int adjust_sdram_tbs_8xx (void) return (0); } -#endif /* CONFIG_TQM8xxL/M, !TQM866M */ +#endif /* CONFIG_TQM8xxL/M, !TQM866M, !TQM885D */ /* ------------------------------------------------------------------------- */ |