summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@freescale.com>2008-12-03 15:16:35 -0800
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-12-19 18:32:48 -0600
commit446c381e3e16f19857b72ea0d06241267b8b9d58 (patch)
tree3dabe03b4272e5b3e375d5157768a492ef92460b /cpu
parentf51f07eb58fad12de9294ba4ee6c09a0ddeaee03 (diff)
downloadu-boot-imx-446c381e3e16f19857b72ea0d06241267b8b9d58.zip
u-boot-imx-446c381e3e16f19857b72ea0d06241267b8b9d58.tar.gz
u-boot-imx-446c381e3e16f19857b72ea0d06241267b8b9d58.tar.bz2
mpc8568: Double local bus clock divider
The clock divider for the MPC8568 local bus should be doubled, like the other newer MPC85xx chips. Since there are now more chips with a 2x divider than a 1x, and any new 85xx chips will probably be 2x, invert the sense of the #if so that it lists the 1x chips instead of the 2x ones. Signed-off-by: Trent Piepho <tpiepho@freescale.com> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc85xx/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c
index 59a9ac8..89800b8 100644
--- a/cpu/mpc85xx/cpu.c
+++ b/cpu/mpc85xx/cpu.c
@@ -176,8 +176,8 @@ int checkcpu (void)
#endif
clkdiv = lcrr & LCRR_CLKDIV;
if (clkdiv == 2 || clkdiv == 4 || clkdiv == 8) {
-#if defined(CONFIG_MPC8548) || defined(CONFIG_MPC8544) || \
- defined(CONFIG_MPC8572) || defined(CONFIG_MPC8536)
+#if !defined(CONFIG_MPC8540) && !defined(CONFIG_MPC8541) && \
+ !defined(CONFIG_MPC8555) && !defined(CONFIG_MPC8560)
/*
* Yes, the entire PQ38 family use the same
* bit-representation for twice the clock divider values.