Commit a69b346d authored by Timo Teras's avatar Timo Teras Committed by Juha Yrjola

ARM: OMAP: Fix dmtimers and timer32k to compile on OMAP1

Fixes compilation errors on OMAP1.
Signed-off-by: default avatarTimo Teras <timo.teras@solidboot.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent e5bb1ba6
...@@ -260,7 +260,7 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask) ...@@ -260,7 +260,7 @@ __u32 omap_dm_timer_modify_idlect_mask(__u32 inputmask)
for (i = 0; i < dm_timer_count; i++) { for (i = 0; i < dm_timer_count; i++) {
u32 l; u32 l;
l = omap_dm_timer_read_reg(&dm_timers[n], OMAP_TIMER_CTRL_REG); l = omap_dm_timer_read_reg(&dm_timers[i], OMAP_TIMER_CTRL_REG);
if (l & OMAP_TIMER_CTRL_ST) { if (l & OMAP_TIMER_CTRL_ST) {
if (((omap_readl(MOD_CONF_CTRL_1) >> (i * 2)) & 0x03) == 0) if (((omap_readl(MOD_CONF_CTRL_1) >> (i * 2)) & 0x03) == 0)
inputmask &= ~(1 << 1); inputmask &= ~(1 << 1);
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach/irq.h> #include <asm/mach/irq.h>
#include <asm/mach/time.h> #include <asm/mach/time.h>
#include <asm/arch/dmtimer.h>
struct sys_timer omap_timer; struct sys_timer omap_timer;
...@@ -118,8 +119,6 @@ static inline void omap_32k_timer_stop(void) ...@@ -118,8 +119,6 @@ static inline void omap_32k_timer_stop(void)
#elif defined(CONFIG_ARCH_OMAP2) #elif defined(CONFIG_ARCH_OMAP2)
#include <asm/arch/dmtimer.h>
static struct omap_dm_timer *gptimer; static struct omap_dm_timer *gptimer;
static inline void omap_32k_timer_start(unsigned long load_val) static inline void omap_32k_timer_start(unsigned long load_val)
...@@ -274,6 +273,7 @@ static __init void omap_init_32k_timer(void) ...@@ -274,6 +273,7 @@ static __init void omap_init_32k_timer(void)
omap_timer.offset = omap_32k_timer_gettimeoffset; omap_timer.offset = omap_32k_timer_gettimeoffset;
omap_32k_last_tick = omap_32k_sync_timer_read(); omap_32k_last_tick = omap_32k_sync_timer_read();
#ifdef CONFIG_ARCH_OMAP2
/* REVISIT: Check 24xx TIOCP_CFG settings after idle works */ /* REVISIT: Check 24xx TIOCP_CFG settings after idle works */
if (cpu_is_omap24xx()) { if (cpu_is_omap24xx()) {
gptimer = omap_dm_timer_request_specific(1); gptimer = omap_dm_timer_request_specific(1);
...@@ -285,6 +285,7 @@ static __init void omap_init_32k_timer(void) ...@@ -285,6 +285,7 @@ static __init void omap_init_32k_timer(void)
OMAP_TIMER_INT_CAPTURE | OMAP_TIMER_INT_OVERFLOW | OMAP_TIMER_INT_CAPTURE | OMAP_TIMER_INT_OVERFLOW |
OMAP_TIMER_INT_MATCH); OMAP_TIMER_INT_MATCH);
} }
#endif
omap_32k_timer_start(OMAP_32K_TIMER_TICK_PERIOD); omap_32k_timer_start(OMAP_32K_TIMER_TICK_PERIOD);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment