diff options
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/timer.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c index 1a9051b6f932..87efda0aa348 100644 --- a/arch/arm/mach-ux500/timer.c +++ b/arch/arm/mach-ux500/timer.c | |||
@@ -11,31 +11,11 @@ | |||
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | #include <linux/of_address.h> | 12 | #include <linux/of_address.h> |
13 | 13 | ||
14 | #include <asm/smp_twd.h> | ||
15 | |||
16 | #include "setup.h" | 14 | #include "setup.h" |
17 | #include "irqs.h" | ||
18 | 15 | ||
19 | #include "db8500-regs.h" | 16 | #include "db8500-regs.h" |
20 | #include "id.h" | 17 | #include "id.h" |
21 | 18 | ||
22 | #ifdef CONFIG_HAVE_ARM_TWD | ||
23 | static DEFINE_TWD_LOCAL_TIMER(u8500_twd_local_timer, | ||
24 | U8500_TWD_BASE, IRQ_LOCALTIMER); | ||
25 | |||
26 | static void __init ux500_twd_init(void) | ||
27 | { | ||
28 | struct twd_local_timer *twd_local_timer; | ||
29 | |||
30 | /* Use this to switch local timer base if changed in new ASICs */ | ||
31 | twd_local_timer = &u8500_twd_local_timer; | ||
32 | |||
33 | clocksource_of_init(); | ||
34 | } | ||
35 | #else | ||
36 | #define ux500_twd_init() do { } while(0) | ||
37 | #endif | ||
38 | |||
39 | const static struct of_device_id prcmu_timer_of_match[] __initconst = { | 19 | const static struct of_device_id prcmu_timer_of_match[] __initconst = { |
40 | { .compatible = "stericsson,db8500-prcmu-timer-4", }, | 20 | { .compatible = "stericsson,db8500-prcmu-timer-4", }, |
41 | { }, | 21 | { }, |
@@ -64,5 +44,5 @@ void __init ux500_timer_init(void) | |||
64 | 44 | ||
65 | dt_fail: | 45 | dt_fail: |
66 | clksrc_dbx500_prcmu_init(prcmu_timer_base); | 46 | clksrc_dbx500_prcmu_init(prcmu_timer_base); |
67 | ux500_twd_init(); | 47 | clocksource_of_init(); |
68 | } | 48 | } |