]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: dmtimer: enable all timers to be wakeup events
authorKevin Hilman <khilman@deeprootsystems.com>
Fri, 10 Apr 2009 16:38:55 +0000 (10:38 -0600)
committerpaul <paul@twilight.(none)>
Fri, 10 Apr 2009 16:38:55 +0000 (10:38 -0600)
All GP timers on OMAP2/3 can generate wakeup events.  The wakeup status is
cleared in the PRCM interrupt handler.

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

index c99d611242a9231c2bf1e6a66609698b006717d2..a05205c12f7b3d39c58f5eba6561107558f34a09 100644 (file)
@@ -321,11 +321,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);