Skip to contentSkip to conversation

ARM: OMAP: Disable 32kHz timer warning

PATCH In review andrzej zaborowski 2 participants 2 messages Aug 10, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: Disable 32kHz timer warning

This makes the following warning conditional as the 32kHz timer is only implemented for 16xx out of OMAP1 cpus:
arch/arm/mach-omap1/pm.c:138:2: warning: #warning Enable 32kHz OS timer in order to allow sleep states in idle

Signature · 1 line
balrog 2oo6
arch/arm/mach-omap1/pm.c +2 -0
@@ -134,7 +134,9 @@ void omap_pm_idle(void)
 	timer_dyn_reprogram();
 
 #ifdef CONFIG_OMAP_MPU_TIMER
+#ifdef CONFIG_ARCH_OMAP16XX
 #warning Enable 32kHz OS timer in order to allow sleep states in idle
+#endif
 	use_idlect1 = use_idlect1 & ~(1 << 9);
 #else
 
#1 lore raw
Quoted 4 lines · andrzej zaborowski

This makes the following warning conditional as the 32kHz timer is only implemented for 16xx out of OMAP1 cpus:
arch/arm/mach-omap1/pm.c:138:2: warning: #warning Enable 32kHz OS timer in order to allow sleep states in idle

The warning is still valid though. The current tree does not use sleep states for idling for 15xx.

It may be worth checking if there is a continuously running 32KHz timer somewhere on 15xx as it would allow using dynamic tick and sleep states for idling. Last time I looked I did not find anything, but then again I only browsed the TRM and did not scan registers for it.

Could somebody at TI confirm if 15xx has a continuously running 32KHz timer at some register? If not, some other unused timer could be set to run at 32KHz continuously to update time from it.

Regards,

Tony