deadbat-cpu-200.patch
commit539eeece8bb08f806a38acd0513341f944aaab5d
authorWerner Almesberger <werner@openmoko.org>
Tue, 15 Jul 2008 11:33:33 +0000 (15 12:33 +0100)
committerAndy Green <agreen@localhost.localdomain>
Tue, 15 Jul 2008 11:33:33 +0000 (15 12:33 +0100)
treed997667796ea9f9f786c2f10bf95de4084dd57e8
parent0f0533a0434cdb71247bb308c225d2b372331dfc
deadbat-cpu-200.patch

Raise the CPU clock (FCLK) from 200MHz to 400MHz only after we've established
that we have a good power source.

That way, the little bit of processing that are done in wait_for_power cause
less spikes in current consumption, which decreases the risk of running out
of power while waiting for USB signaling or similar.

We also save about 7mA of static consumption.

We need to do this awkward two-step process, once in board_init and then
again in board_late_init, since various clocks that depend on PCLK are
calculated after board_init (and start.S uses yet another set of different
settings).

Signed-off-by: Werner Almesberger <werner@openmoko.org>
board/neo1973/gta02/gta02.c