Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 094624fa authored by Josh Boyer's avatar Josh Boyer
Browse files

[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: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent 16fdad33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ 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);
	mtdcr(DCRN_405_CPC0_CR1, cpc0_cr1);
	tb = cpu;

	dt_fixup_cpu_clocks(cpu, tb, 0);