aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-versatile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-versatile')
-rw-r--r--arch/arm/plat-versatile/timer-sp.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/plat-versatile/timer-sp.c b/arch/arm/plat-versatile/timer-sp.c
index 98722f44640c..d1dbef5b17b1 100644
--- a/arch/arm/plat-versatile/timer-sp.c
+++ b/arch/arm/plat-versatile/timer-sp.c
@@ -33,17 +33,7 @@
33/* 33/*
34 * How long is the timer interval? 34 * How long is the timer interval?
35 */ 35 */
36#define TIMER_INTERVAL (TICKS_PER_uSEC * mSEC_10) 36#define TIMER_RELOAD (TICKS_PER_uSEC * mSEC_10)
37#if TIMER_INTERVAL >= 0x100000
38#define TIMER_RELOAD (TIMER_INTERVAL >> 8)
39#define TIMER_DIVISOR (TIMER_CTRL_DIV256)
40#elif TIMER_INTERVAL >= 0x10000
41#define TIMER_RELOAD (TIMER_INTERVAL >> 4) /* Divide by 16 */
42#define TIMER_DIVISOR (TIMER_CTRL_DIV16)
43#else
44#define TIMER_RELOAD (TIMER_INTERVAL)
45#define TIMER_DIVISOR (TIMER_CTRL_DIV1)
46#endif
47 37
48 38
49static void __iomem *clksrc_base; 39static void __iomem *clksrc_base;