From b7276b236dcf400003179e77f5b4b4c05e1fb29c Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 5 Aug 2010 07:58:58 +0100 Subject: 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 Signed-off-by: Russell King --- arch/arm/mach-u300/timer.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-u300/timer.c') 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 @@ #include #include #include +#include +#include #include @@ -23,7 +25,6 @@ #include #include -#include "clock.h" /* * APP side special timer registers @@ -367,7 +368,13 @@ unsigned long long notrace sched_clock(void) */ static void __init u300_timer_init(void) { - u300_enable_timer_clock(); + struct clk *clk; + + /* Clock the interrupt controller */ + clk = clk_get_sys("apptimer", NULL); + BUG_ON(IS_ERR(clk)); + clk_enable(clk); + /* * Disable the "OS" and "DD" timers - these are designed for Symbian! * Example usage in cnh1601578 cpu subsystem pd_timer_app.c -- cgit v1.2.1