aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/timer32k.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2006-07-01 14:56:42 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-07-01 14:56:42 -0400
commit35912c799722f0c63b8c2c49c7650d4516a5fe8a (patch)
treec8f37a3c1ea5138d593be82634913f3fbedf46ec /arch/arm/plat-omap/timer32k.c
parentff0daca525dde796382b9ccd563f169df2571211 (diff)
[ARM] 3676/1: ARM: OMAP: Fix dmtimers and timer32k to compile on OMAP1
Patch from Tony Lindgren Fixes compilation errors on OMAP1. Patch from Timo Teras. Signed-off-by: Timo Teras <timo.teras@solidboot.com> Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap/timer32k.c')
-rw-r--r--arch/arm/plat-omap/timer32k.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/timer32k.c b/arch/arm/plat-omap/timer32k.c
index f028e182215a..ea9f3732630b 100644
--- a/arch/arm/plat-omap/timer32k.c
+++ b/arch/arm/plat-omap/timer32k.c
@@ -51,6 +51,7 @@
51#include <asm/irq.h> 51#include <asm/irq.h>
52#include <asm/mach/irq.h> 52#include <asm/mach/irq.h>
53#include <asm/mach/time.h> 53#include <asm/mach/time.h>
54#include <asm/arch/dmtimer.h>
54 55
55struct sys_timer omap_timer; 56struct sys_timer omap_timer;
56 57
@@ -118,8 +119,6 @@ static inline void omap_32k_timer_stop(void)
118 119
119#elif defined(CONFIG_ARCH_OMAP2) 120#elif defined(CONFIG_ARCH_OMAP2)
120 121
121#include <asm/arch/dmtimer.h>
122
123static struct omap_dm_timer *gptimer; 122static struct omap_dm_timer *gptimer;
124 123
125static inline void omap_32k_timer_start(unsigned long load_val) 124static inline void omap_32k_timer_start(unsigned long load_val)
@@ -275,6 +274,7 @@ static __init void omap_init_32k_timer(void)
275 omap_timer.offset = omap_32k_timer_gettimeoffset; 274 omap_timer.offset = omap_32k_timer_gettimeoffset;
276 omap_32k_last_tick = omap_32k_sync_timer_read(); 275 omap_32k_last_tick = omap_32k_sync_timer_read();
277 276
277#ifdef CONFIG_ARCH_OMAP2
278 /* REVISIT: Check 24xx TIOCP_CFG settings after idle works */ 278 /* REVISIT: Check 24xx TIOCP_CFG settings after idle works */
279 if (cpu_is_omap24xx()) { 279 if (cpu_is_omap24xx()) {
280 gptimer = omap_dm_timer_request_specific(1); 280 gptimer = omap_dm_timer_request_specific(1);
@@ -286,6 +286,7 @@ static __init void omap_init_32k_timer(void)
286 OMAP_TIMER_INT_CAPTURE | OMAP_TIMER_INT_OVERFLOW | 286 OMAP_TIMER_INT_CAPTURE | OMAP_TIMER_INT_OVERFLOW |
287 OMAP_TIMER_INT_MATCH); 287 OMAP_TIMER_INT_MATCH);
288 } 288 }
289#endif
289 290
290 omap_32k_timer_start(OMAP_32K_TIMER_TICK_PERIOD); 291 omap_32k_timer_start(OMAP_32K_TIMER_TICK_PERIOD);
291} 292}