[RFC] AT91 cpufreq support

From
Nicolas Ferre <hidden>
Date
2009-09-30 15:22:53
Reply to
Albin Tonnerre, 2009-08-26
Albin Tonnerre :
Hi there,

Here is an updated version of the patch that brings cpufreq support on AT91.
This one is more generic that the previous one: instead of using fixed values,
it gets the current prescaler value and builds the frequency table accordingly.

It fixes a couple mistakes from the previous iteration, making it work more
reliably, at least there. I also added a cpufreq notifier to atmel_serial, so
that we don't lose the console over a frequency change (I'll move it to a
separate patch in a further update, and will add such support for the macb
driver too).
As there's no cpufreq notifier in the macb driver (yet), using cpufreq with a
NFS root filesystem will fail (obviously, other uses of the network will
probably fail too, but at least they don't make the system unusable)

On a Calao USB-A9263 board, switching from 180MHz to 11MHz reduces the current
consumption by roughly 65mA

Testing/feedback would be very much welcome
I am testing your cpufreq patch on at91sam9263ek board.

Indeed it is working quite well. But, I it is true that we will have to
add notifiers for several drivers: my LCD screen gets messy while
reducing frequency ;-)

Anyway, as I see that there is a notifier for serial driver, I wonder if
we can keep serial console connexion during frequency switching ? I
assume that we will have to change the baud rate configuration of the
terminal emulator but do you have a clue to give us (I tried without
success) ?

On my test case: at91sam9263ek without LCD backlight I have those
values: 1,63W @ 199MHz and 1,28W @ 12MHz => 21% gain: good !

Bye-bye,
-- 
Nicolas Ferre
Thread (4 messages) 4 messages, 4 authors, last reply 2009-10-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help