]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP4: DMTIMER: enable autoidle mode
authorAmbresh K <ambresh@ti.com>
Wed, 15 Jun 2011 21:12:35 +0000 (21:12 +0000)
committerTony Lindgren <tony@atomide.com>
Mon, 4 Jul 2011 11:11:08 +0000 (04:11 -0700)
Currently autoidle is only enabled for OMAP2/3; by enabling autoidle,
the automatic L4 clock gating strategy is applied based on L4 activity,
otherwise L4 clock to module will be a free running.

Signed-off-by: Ambresh K <ambresh@ti.com>
[tony@atomide.com: updated for timer init changes]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c

index 8dfb8186b2c21515245f8229a8886a3f04759158..75a847dd776a3d24ccca85c29aab32b90bbbe3e7 100644 (file)
@@ -209,8 +209,8 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer)
        }
        omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ);
 
-       /* Enable autoidle on OMAP2 / OMAP3 */
-       if (cpu_is_omap24xx() || cpu_is_omap34xx())
+       /* Enable autoidle on OMAP2+ */
+       if (cpu_class_is_omap2())
                autoidle = 1;
 
        /*