mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
[POWERPC] 4xx: Fix timebase clock selection on Walnut
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>
This commit is contained in:
parent
16fdad334c
commit
094624fa66
@ -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 */
|
/* setup the timebase clock to tick at the cpu frequency */
|
||||||
cpc0_cr1 = cpc0_cr1 & ~ 0x00800000;
|
cpc0_cr1 = cpc0_cr1 & ~0x00800000;
|
||||||
mtdcr(DCRN_CPC0_CR1, cpc0_cr1);
|
mtdcr(DCRN_405_CPC0_CR1, cpc0_cr1);
|
||||||
tb = cpu;
|
tb = cpu;
|
||||||
|
|
||||||
dt_fixup_cpu_clocks(cpu, tb, 0);
|
dt_fixup_cpu_clocks(cpu, tb, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user