OMAP4: hwmod data: Prevent timer1 to be reset and idle during init
authorBenoit Cousson <b-cousson@ti.com>
Tue, 22 Feb 2011 09:36:27 +0000 (10:36 +0100)
committerTony Lindgren <tony@atomide.com>
Tue, 22 Feb 2011 18:34:41 +0000 (10:34 -0800)
Since the timer1 is now started before the hwmod_init, we cannot
reset it and idle it anymore.

Add the appropriate flags to prevent the hwmod framework to do that.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_hwmod_44xx_data.c

index 182aa79d5e52b6d216cd73fe73731dfe09ac0886..79a8601789138faee5c7414be7e8fe30cebdf633 100644 (file)
@@ -3989,6 +3989,7 @@ static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
 static struct omap_hwmod omap44xx_timer1_hwmod = {
        .name           = "timer1",
        .class          = &omap44xx_timer_1ms_hwmod_class,
+       .flags          = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
        .mpu_irqs       = omap44xx_timer1_irqs,
        .mpu_irqs_cnt   = ARRAY_SIZE(omap44xx_timer1_irqs),
        .main_clk       = "timer1_fck",