[PATCH 10/11] ARM: pxa: add 32KHz timer as clock source

Nicolas Pitre nico at fluxnic.net
Fri Nov 12 12:50:05 EST 2010


On Fri, 12 Nov 2010, Haojian Zhuang wrote:

> PXA silicons are using 3MHz timer as default clock source. But it'll be stopped
> counting in low power mode. Although 32KHz timer is slow, it can continue
> counting in low power mode. While low power mode is implemented as idle,
> stopped timer can't be accepted.
> 
> Add 32KHz timer as an alternative clock source. User can switch clock source
> on demand.

Why are you doing this?  What's wrong with  having timers stopped when 
in sleep mode?  I don't think a 32K timer is precise enough for 
runtime usage in general.

What you should do instead is to use the 32KHz timer to readjust OSCR 
when the CPU comes out of sleep mode.


Nicolas



More information about the linux-arm-kernel mailing list