diff options
Diffstat (limited to 'arch/arm/mach-prima2/timer.c')
-rw-r--r-- | arch/arm/mach-prima2/timer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-prima2/timer.c b/arch/arm/mach-prima2/timer.c index f224107de7bc..d95bf252f694 100644 --- a/arch/arm/mach-prima2/timer.c +++ b/arch/arm/mach-prima2/timer.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <asm/sched_clock.h> | 21 | #include <asm/sched_clock.h> |
22 | #include <asm/mach/time.h> | 22 | #include <asm/mach/time.h> |
23 | 23 | ||
24 | #include "common.h" | ||
25 | |||
24 | #define SIRFSOC_TIMER_COUNTER_LO 0x0000 | 26 | #define SIRFSOC_TIMER_COUNTER_LO 0x0000 |
25 | #define SIRFSOC_TIMER_COUNTER_HI 0x0004 | 27 | #define SIRFSOC_TIMER_COUNTER_HI 0x0004 |
26 | #define SIRFSOC_TIMER_MATCH_0 0x0008 | 28 | #define SIRFSOC_TIMER_MATCH_0 0x0008 |
@@ -188,9 +190,13 @@ static void __init sirfsoc_clockevent_init(void) | |||
188 | static void __init sirfsoc_timer_init(void) | 190 | static void __init sirfsoc_timer_init(void) |
189 | { | 191 | { |
190 | unsigned long rate; | 192 | unsigned long rate; |
193 | struct clk *clk; | ||
194 | |||
195 | /* initialize clocking early, we want to set the OS timer */ | ||
196 | sirfsoc_of_clk_init(); | ||
191 | 197 | ||
192 | /* timer's input clock is io clock */ | 198 | /* timer's input clock is io clock */ |
193 | struct clk *clk = clk_get_sys("io", NULL); | 199 | clk = clk_get_sys("io", NULL); |
194 | 200 | ||
195 | BUG_ON(IS_ERR(clk)); | 201 | BUG_ON(IS_ERR(clk)); |
196 | 202 | ||