Skip to content

Commit

Permalink
OMAP4: DMTIMER: enable autoidle mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ambresh K authored and Tony Lindgren committed Jul 4, 2011
1 parent f6281f6 commit ba50348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit ba50348

Please sign in to comment.