aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-u300/timer.c')
-rw-r--r--arch/arm/mach-u300/timer.c11
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 */
368static void __init u300_timer_init(void) 369static 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