aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-11-19 16:37:55 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-11-26 15:01:59 -0500
commit089b5c9595eb3c516ab6af12802f16505cde271b (patch)
tree522ca371e4e23279994e7d0aaf8221754ac225d2
parent7172c19a2427da1d2507d19ca056157fd92490e7 (diff)
ARM: ux500: decomission custom SMP TWD timer init
Rely solely on device tree matching to detect and probe the SMP TWD timer and remove this custom hack. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/arm/mach-ux500/timer.c22
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
23static DEFINE_TWD_LOCAL_TIMER(u8500_twd_local_timer,
24 U8500_TWD_BASE, IRQ_LOCALTIMER);
25
26static 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
39const static struct of_device_id prcmu_timer_of_match[] __initconst = { 19const 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
65dt_fail: 45dt_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}