diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer-gp.c')
-rw-r--r-- | arch/arm/mach-omap2/timer-gp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index e2338c0aebcf..cd04deaa88c5 100644 --- a/arch/arm/mach-omap2/timer-gp.c +++ b/arch/arm/mach-omap2/timer-gp.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/clockchips.h> | 37 | #include <linux/clockchips.h> |
38 | 38 | ||
39 | #include <asm/mach/time.h> | 39 | #include <asm/mach/time.h> |
40 | #include <mach/dmtimer.h> | 40 | #include <plat/dmtimer.h> |
41 | #include <asm/localtimer.h> | 41 | #include <asm/localtimer.h> |
42 | 42 | ||
43 | /* MAX_GPTIMER_ID: number of GPTIMERs on the chip */ | 43 | /* MAX_GPTIMER_ID: number of GPTIMERs on the chip */ |
@@ -47,6 +47,7 @@ static struct omap_dm_timer *gptimer; | |||
47 | static struct clock_event_device clockevent_gpt; | 47 | static struct clock_event_device clockevent_gpt; |
48 | static u8 __initdata gptimer_id = 1; | 48 | static u8 __initdata gptimer_id = 1; |
49 | static u8 __initdata inited; | 49 | static u8 __initdata inited; |
50 | struct omap_dm_timer *gptimer_wakeup; | ||
50 | 51 | ||
51 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) | 52 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) |
52 | { | 53 | { |
@@ -134,6 +135,7 @@ static void __init omap2_gp_clockevent_init(void) | |||
134 | 135 | ||
135 | gptimer = omap_dm_timer_request_specific(gptimer_id); | 136 | gptimer = omap_dm_timer_request_specific(gptimer_id); |
136 | BUG_ON(gptimer == NULL); | 137 | BUG_ON(gptimer == NULL); |
138 | gptimer_wakeup = gptimer; | ||
137 | 139 | ||
138 | #if defined(CONFIG_OMAP_32K_TIMER) | 140 | #if defined(CONFIG_OMAP_32K_TIMER) |
139 | src = OMAP_TIMER_SRC_32_KHZ; | 141 | src = OMAP_TIMER_SRC_32_KHZ; |
@@ -231,7 +233,8 @@ static void __init omap2_gp_clocksource_init(void) | |||
231 | static void __init omap2_gp_timer_init(void) | 233 | static void __init omap2_gp_timer_init(void) |
232 | { | 234 | { |
233 | #ifdef CONFIG_LOCAL_TIMERS | 235 | #ifdef CONFIG_LOCAL_TIMERS |
234 | twd_base = OMAP2_IO_ADDRESS(OMAP44XX_LOCAL_TWD_BASE); | 236 | twd_base = ioremap(OMAP44XX_LOCAL_TWD_BASE, SZ_256); |
237 | BUG_ON(!twd_base); | ||
235 | #endif | 238 | #endif |
236 | omap_dm_timer_init(); | 239 | omap_dm_timer_init(); |
237 | 240 | ||