clocksource: use the correct base address to setup timer 0
PATCH 1/1 clocksource: use the correct base address to setup timer 0
The static variable clksrc_base was removed by:
commit 3f3808c30612334e38e0641024d2c020c0eda7d4
Use the base address passed to sp804_clocksource_init() when doing the setup for timer 0.
---
arch/arm/common/timer-sp.c +4 -4
@@ -35,11 +35,11 @@void __init sp804_clocksource_init (void __iomem *base) {/* setup timer 0 as free-running clocksource */ -writel (0 , clksrc_base +TIMER_CTRL ); -writel (0xffffffff , clksrc_base +TIMER_LOAD ); -writel (0xffffffff , clksrc_base +TIMER_VALUE ); +writel (0 , base +TIMER_CTRL ); +writel (0xffffffff , base +TIMER_LOAD ); +writel (0xffffffff , base +TIMER_VALUE );writel (TIMER_CTRL_32BIT |TIMER_CTRL_ENABLE |TIMER_CTRL_PERIODIC , - clksrc_base +TIMER_CTRL ); + base +TIMER_CTRL );clocksource_mmio_init (base +TIMER_VALUE ,"timer3" ,TIMER_FREQ_KHZ *1000 ,200 ,32 , clocksource_mmio_readl_down);
PATCH 1/1 clocksource: use the correct base address to setup timer 0
Quoted 9 lines · H Hartley Sweeten
The static variable
clksrc_basewas removed by:commit
3f3808c30612334e38e0641024d2c020c0eda7d4Use the base address passed to
sp804_clocksource_init()when doing the setup for timer 0.Signed-off-by H Hartley Sweeten <[email protected]>Cc Russell King <[email protected]>
This has already been fixed.
PATCH 1/1 clocksource: use the correct base address to setup timer 0
Quoted 5 lines · Russell King
Quoted 4 lines · H Hartley Sweeten
The static variable
clksrc_basewas removed by:commit
3f3808c30612334e38e0641024d2c020c0eda7d4
Quoted 7 lines
Quoted 5 lines
Use the base address passed to
sp804_clocksource_init()when doing the setup for timer 0.Signed-off-by H Hartley Sweeten <[email protected]>Cc Russell King <[email protected]>This has already been fixed.
Ok. Thanks for the info.
Hartley
PATCH 1/1 clocksource: use the correct base address to setup timer 0
Quoted 9 lines · H Hartley Sweeten
Quoted 8 lines · Russell King
Quoted 7 lines · H Hartley Sweeten
The static variable
clksrc_basewas removed by:commit
3f3808c30612334e38e0641024d2c020c0eda7d4Use the base address passed to
sp804_clocksource_init()when doing the setup for timer 0.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by H Hartley Sweeten <[email protected]>Cc Russell King <[email protected]>This has already been fixed.
Ok. Thanks for the info.
I'm about to repost the entire series.