On Sun, May 1, 2011 at 6:58 AM, David Goldsmith wizard.stan@gmail.com wrote:
I've briefly glanced through that section of the spec and I believe it is theoretically possible to know how it was started (switch, power, or interrupt) but it needs i2c to communicate and I'm not sure how early in the boot process that would be available.
Are you sure about that? There is a register that tells about watchdog resets and thermal shutdown, but not much else..
I wonder if it could be handled in the uBoot, before it even gets to the kernel.
Yes it could, u-boot can access TWL but I'm not sure you can find the boot reason.