[Bug 80] wakeup reason not in /proc/cmdline
bugzilla-daemon at bugzilla.openmoko.org
bugzilla-daemon at bugzilla.openmoko.org
Mon May 26 11:59:12 CEST 2008
http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=80
andy at openmoko.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From andy at openmoko.com 2008-05-26 11:59 -------
If you have a U-Boot with uboot-add-find-wake-reason.patch (in git for a week
now) and current git stable branch kernel,
$ cat /sys/devices/platform/neo1973-resume.0/resume_reason
gets you a resume reason list like this:
EINT00_ACCEL1
EINT01_GSM
EINT02_BLUETOOTH
EINT03_DEBUGBRD
EINT04_JACK
EINT05_WLAN
EINT06_AUXKEY
EINT07_HOLDKEY
EINT08_ACCEL2
* EINT09_PMU
adpins
adprem
usbins
usbrem
rtcalarm
second
onkeyr
onkeyf
exton1r
exton1f
exton2r
exton2f
exton3r
exton3f
* batfull
chghalt
thlimon
thlimoff
usblimon
usblimoff
adcrdy
onkey1s
lowsys
lowbat
hightmp
autopwrfail
dwn1pwrfail
dwn2pwrfail
ledpwrfail
ledovp
ldo1pwrfail
ldo2pwrfail
ldo3pwrfail
ldo4pwrfail
ldo5pwrfail
ldo6pwrfail
hcidopwrfail
hcidoovl
EINT10_NULL
EINT11_NULL
EINT12_GLAMO
EINT13_NULL
EINT14_NULL
EINT15_NULL
This is suitable for userspace to parse with grep; if drivers are interested in
wake reason, the EINT_* stuff is available as a bitfield in kernelspace and the
PMU-specific reason is as available as a bitfield as soon as I2C and PMU resumes
and services its interrupt.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openmoko-kernel
mailing list