aux button interrupt to pmu?
andy at openmoko.com
Fri Jun 6 08:46:24 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| On Fri, 6 Jun 2008 00:36:21 -0300 Werner Almesberger <werner at openmoko.org>
|> Carsten Haitzler wrote:
|>> just checking- i'm sure you said this before - but the aux button has no
|>> interrupt line to the pum - right?
|>> (so it can't be used for wakeup on suspend)?
|> It could be, since it's connected to the CPU, so it could wake the CPU
|> directly. However, please bear in mind that AUX also changes whether
|> we boot from NAND or from NOR, so using it to wake up from suspend,
|> which involves a small part of the boot process, has a high risk of
|> causing trouble in general, and especially as the u-boot in NAND and
|> the u-boot in NOR diverge.
| so basically.. "no". is the answer to using the aux button for a reliable
| wakeup from suspend (if we do zero-clock though this is another matter...)
This is actually an interesting story I think we already learned lessons
from about what not to do.
AUX comes to EINT5 and is a wake source for suspend just fine.
But we overload AUX button to select coming up in NOR; when we wake from
suspend it is a normal reset for the CPU and if you have the AUX button
down even for wake, we will wake up in NOR U-Boot.
Werner mentions "diverge[nce]" for NOR U-Boot, it is because it can't be
updated due to this "write once" policy (you can rewrite it from a debug
In fact there should be limited trouble it can cause since we jump to a
wake address in a fixed CPU register that survives suspend, if NOR
U-Boot can deal with wake at all it should be safe. The main thing
that'll be broken is the wake reason, since NOR image AFAIK is too old
to have the patch.
But... Carsten does it say in the spec we should wake on AUX press?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel