Skip to content

Commit

Permalink
[POWERPC] 4xx: Fix timebase clock selection on Walnut
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josh Boyer committed Oct 19, 2007
1 parent 16fdad3 commit 094624f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/boot/treeboot-walnut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 094624f

Please sign in to comment.