diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-04 21:05:19 -0700 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-04 21:05:19 -0700 |
commit | 242521e90e3f0a7660699761f7b42f0deaa8ea15 (patch) | |
tree | 14078c1cf39a7506b9f760018181c2b67ffa7f44 /arch/arm/mach-prima2/timer.c | |
parent | 3fbb96d275989c604b343b9e39aeea50386756e9 (diff) | |
parent | c1e3c1196be37acaea95803043bc1055ea5131ac (diff) |
Merge branch 'marco-prepare' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel into next/cleanup
* 'marco-prepare' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel:
ARM: SIRF: make sirf irqchip driver optional since new SoCs will have GIC
ARM: PRIMA2: adjust Kconfig to support select SoC features
ARM: PRIMA2: use DT_MACHINE_START and convert to generic board
clk: prima2: move from arch/arm/mach to drivers/clk
ARM: PRIMA2: convert to common clk and finish full clk tree
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 f224107de7b..d95bf252f69 100644 --- a/arch/arm/mach-prima2/timer.c +++ b/arch/arm/mach-prima2/timer.c @@ -21,6 +21,8 @@ #include <asm/sched_clock.h> #include <asm/mach/time.h> +#include "common.h" + #define SIRFSOC_TIMER_COUNTER_LO 0x0000 #define SIRFSOC_TIMER_COUNTER_HI 0x0004 #define SIRFSOC_TIMER_MATCH_0 0x0008 @@ -188,9 +190,13 @@ static void __init sirfsoc_clockevent_init(void) static void __init sirfsoc_timer_init(void) { unsigned long rate; + struct clk *clk; + + /* initialize clocking early, we want to set the OS timer */ + sirfsoc_of_clk_init(); /* timer's input clock is io clock */ - struct clk *clk = clk_get_sys("io", NULL); + clk = clk_get_sys("io", NULL); BUG_ON(IS_ERR(clk)); |