Commit 65b630a0 authored by Kevin Hilman's avatar Kevin Hilman

OMAP: dmtimer: enable all timers to be wakeup events

All GP timers on OMAP2/3 can be wakeup events.  The wakeup status is
cleared in the PRCM interrupt handler.
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 20752c3f
...@@ -320,11 +320,9 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer) ...@@ -320,11 +320,9 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer)
l |= 0x2 << 8; /* Set clock activity to perserve f-clock on idle */ l |= 0x2 << 8; /* Set clock activity to perserve f-clock on idle */
/* /*
* Enable wake-up only for GPT1 on OMAP2 CPUs. * Enable wake-up on OMAP2 CPUs.
* FIXME: All timers should have wake-up enabled and clear
* PRCM status.
*/ */
if (cpu_class_is_omap2() && (timer == &dm_timers[0])) if (cpu_class_is_omap2())
l |= 1 << 2; l |= 1 << 2;
omap_dm_timer_write_reg(timer, OMAP_TIMER_OCP_CFG_REG, l); omap_dm_timer_write_reg(timer, OMAP_TIMER_OCP_CFG_REG, l);
......
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