]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
omap2/3: dmtimer: Enable autoidle
authorTero Kristo <tero.kristo@nokia.com>
Thu, 10 Mar 2011 10:50:54 +0000 (03:50 -0700)
committerPaul Walmsley <paul@pwsan.com>
Thu, 10 Mar 2011 10:50:54 +0000 (03:50 -0700)
This saves some power. OMAP4 version should check for GPT module ID, as
autoidle is only supported on a subset of these.

Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/dmtimer.c

index 1d706cf63ca0e697521d38ab814d9889a1b70435..ee9f6ebba29b8a5479353e9c56bc9f839d8e0183 100644 (file)
@@ -342,6 +342,10 @@ static void omap_dm_timer_reset(struct omap_dm_timer *timer)
        l |= 0x02 << 3;  /* Set to smart-idle mode */
        l |= 0x2 << 8;   /* Set clock activity to perserve f-clock on idle */
 
+       /* Enable autoidle on OMAP2 / OMAP3 */
+       if (cpu_is_omap24xx() || cpu_is_omap34xx())
+               l |= 0x1 << 0;
+
        /*
         * Enable wake-up on OMAP2 CPUs.
         */