]> git.sur5r.net Git - u-boot/commitdiff
Fix the local bus divider mapping
authorDave Liu <daveliu@freescale.com>
Tue, 17 Nov 2009 12:49:05 +0000 (20:49 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 26 Jan 2010 04:14:39 +0000 (22:14 -0600)
The real clock divider is 4 times of the bits LCRR[CLKDIV],
according the latest RevF RM.

Signed-off-by: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/speed.c

index 9193992888703718557866b2132092c56545f56c..268edbc5b7368fc6a4dda852ade6e2491f79efcb 100644 (file)
@@ -170,7 +170,12 @@ void get_sys_info (sys_info_t * sysInfo)
        }
 #endif
        if (lcrr_div == 2 || lcrr_div == 4 || lcrr_div == 8) {
-#if !defined(CONFIG_MPC8540) && !defined(CONFIG_MPC8541) && \
+#if defined(CONFIG_FSL_CORENET)
+               /* If this is corenet based SoC, bit-representation
+                * for four times the clock divider values.
+                */
+               lcrr_div *= 4;
+#elif !defined(CONFIG_MPC8540) && !defined(CONFIG_MPC8541) && \
     !defined(CONFIG_MPC8555) && !defined(CONFIG_MPC8560)
                /*
                 * Yes, the entire PQ38 family use the same