diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2010-08-05 02:58:58 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-08-10 17:10:55 -0400 |
commit | b7276b236dcf400003179e77f5b4b4c05e1fb29c (patch) | |
tree | bd6d2ca778640be672356bf92808450dfa01bede /arch/arm/mach-u300/timer.c | |
parent | 379aae5d6c3d8d9751d85a8022e68a90df13a7ae (diff) |
ARM: 6296/1: clock U300 intcon and timer properly
This removes the quirks to clock the U300 VIC and timer by custom
hooks and moves the control out to the clock framework where it
belongs. This is possible now that clocks are available early.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-u300/timer.c')
-rw-r--r-- | arch/arm/mach-u300/timer.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-u300/timer.c b/arch/arm/mach-u300/timer.c index 26d26f5100fe..01f161831956 100644 --- a/arch/arm/mach-u300/timer.c +++ b/arch/arm/mach-u300/timer.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/clocksource.h> | 15 | #include <linux/clocksource.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/clk.h> | ||
19 | #include <linux/err.h> | ||
18 | 20 | ||
19 | #include <mach/hardware.h> | 21 | #include <mach/hardware.h> |
20 | 22 | ||
@@ -23,7 +25,6 @@ | |||
23 | #include <asm/mach/time.h> | 25 | #include <asm/mach/time.h> |
24 | #include <asm/mach/irq.h> | 26 | #include <asm/mach/irq.h> |
25 | 27 | ||
26 | #include "clock.h" | ||
27 | 28 | ||
28 | /* | 29 | /* |
29 | * APP side special timer registers | 30 | * APP side special timer registers |
@@ -367,7 +368,13 @@ unsigned long long notrace sched_clock(void) | |||
367 | */ | 368 | */ |
368 | static void __init u300_timer_init(void) | 369 | static void __init u300_timer_init(void) |
369 | { | 370 | { |
370 | u300_enable_timer_clock(); | 371 | struct clk *clk; |
372 | |||
373 | /* Clock the interrupt controller */ | ||
374 | clk = clk_get_sys("apptimer", NULL); | ||
375 | BUG_ON(IS_ERR(clk)); | ||
376 | clk_enable(clk); | ||
377 | |||
371 | /* | 378 | /* |
372 | * Disable the "OS" and "DD" timers - these are designed for Symbian! | 379 | * Disable the "OS" and "DD" timers - these are designed for Symbian! |
373 | * Example usage in cnh1601578 cpu subsystem pd_timer_app.c | 380 | * Example usage in cnh1601578 cpu subsystem pd_timer_app.c |