]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/pm856/pm856.c
mpc8xxx: LCRR[CLKDIV] is sometimes five bits
[karo-tx-uboot.git] / board / pm856 / pm856.c
index 50c42810be442037bb869fce54af5a0f5114199d..b14a3d34b1f66abf794d39cad2518dc31e746f4b 100644 (file)
@@ -300,13 +300,13 @@ local_bus_init(void)
         * Errata LBC11.
         * Fix Local Bus clock glitch when DLL is enabled.
         *
-        * If localbus freq is < 66Mhz, DLL bypass mode must be used.
-        * If localbus freq is > 133Mhz, DLL can be safely enabled.
+        * If localbus freq is < 66MHz, DLL bypass mode must be used.
+        * If localbus freq is > 133MHz, DLL can be safely enabled.
         * Between 66 and 133, the DLL is enabled with an override workaround.
         */
 
        get_sys_info(&sysinfo);
-       clkdiv = lbc->lcrr & 0x0f;
+       clkdiv = lbc->lcrr & LCRR_CLKDIV;
        lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        if (lbc_hz < 66) {