]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] 4xx: Fix timebase clock selection on Walnut
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>
Fri, 19 Oct 2007 14:53:10 +0000 (00:53 +1000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Fri, 19 Oct 2007 21:18:31 +0000 (16:18 -0500)
The current bootwrapper fails to set the timebase clock to the CPU clock
which causes the time to increment incorrectly.  This fixes it by using the
correct #define for the CPC0_CR1 register.

Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/boot/treeboot-walnut.c

index 3adf2d08a2304da8520793d0d65b5ab40edc0f43..6be76b7edc10500b42a923458f2007ca1561c8da 100644 (file)
@@ -57,8 +57,8 @@ void ibm405gp_fixup_clocks(unsigned int sysclk, unsigned int ser_clk)
        }
 
        /* setup the timebase clock to tick at the cpu frequency */
-       cpc0_cr1 = cpc0_cr1 & ~ 0x00800000;
-       mtdcr(DCRN_CPC0_CR1, cpc0_cr1);
+       cpc0_cr1 = cpc0_cr1 & ~0x00800000;
+       mtdcr(DCRN_405_CPC0_CR1, cpc0_cr1);
        tb = cpu;
 
        dt_fixup_cpu_clocks(cpu, tb, 0);