]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpc8568: Double local bus clock divider
authorTrent Piepho <tpiepho@freescale.com>
Wed, 3 Dec 2008 23:16:35 +0000 (15:16 -0800)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>
Sat, 20 Dec 2008 00:32:48 +0000 (18:32 -0600)
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>
cpu/mpc85xx/cpu.c

index 59a9ac8d923513475b6a59c2627227a6d3689137..89800b88448b40e6c1ccf2c02c351176904137db 100644 (file)
@@ -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.