]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: dmtimer: enable all timers to be wakeup events
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 16 Dec 2008 18:12:34 +0000 (10:12 -0800)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 7 Jan 2009 22:02:47 +0000 (14:02 -0800)
All GP timers on OMAP2/3 can be wakeup events.  The wakeup status is
cleared in the PRCM interrupt handler.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/plat-omap/dmtimer.c

index 5708fd818e8c26cdf1fff942e96e95769627135d..ed397f04b09d5812bcc91c3d9cc2be277a4b7637 100644 (file)
@@ -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 */
 
        /*
-        * Enable wake-up only for GPT1 on OMAP2 CPUs.
-        * FIXME: All timers should have wake-up enabled and clear
-        * PRCM status.
+        * Enable wake-up on OMAP2 CPUs.
         */
-       if (cpu_class_is_omap2() && (timer == &dm_timers[0]))
+       if (cpu_class_is_omap2())
                l |= 1 << 2;
        omap_dm_timer_write_reg(timer, OMAP_TIMER_OCP_CFG_REG, l);