diff options
author | Christoph Grenz <christophg+cb@grenz-bonn.de> | 2011-10-19 02:25:08 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-10-28 22:30:06 +0200 |
commit | b9da3cd891b21f0916ccf3e333f9ed77219620d2 (patch) | |
tree | 030fdeff641fa37bbc832e7716202251b8d2a8d5 | |
parent | cc66d97f505c304e773dea938ac864cd74363292 (diff) | |
download | coreboot-staging-b9da3cd891b21f0916ccf3e333f9ed77219620d2.zip coreboot-staging-b9da3cd891b21f0916ccf3e333f9ed77219620d2.tar.gz |
w83627hf: add method to retrieve wake event source register to ASL include
Add a method WAKS to devtree.asl which returns the wake-up source register
to simplify retrieving the wake source e.g. in \_WAK.
Change-Id: Ia258f8fc9ff79b18391c55464da73863889e2255
Signed-off-by: Christoph Grenz <christophg+cb@grenz-bonn.de>
Reviewed-on: http://review.coreboot.org/297
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rw-r--r-- | src/superio/winbond/w83627hf/devtree.asl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/superio/winbond/w83627hf/devtree.asl b/src/superio/winbond/w83627hf/devtree.asl index cbc132d..aa18841 100644 --- a/src/superio/winbond/w83627hf/devtree.asl +++ b/src/superio/winbond/w83627hf/devtree.asl @@ -1503,5 +1503,22 @@ Scope (\_SB) } } #endif + + /* Returns the wake source register. + It is cleared after reading. + Bit 0: Keyboard wake-up event + Bit 1: Mouse wake-up event + Bit 2: Power button event + Bit 3: CIR wake-up event + Bit 4: Power loss event + Bit 5: VSB power loss status + */ + Method (WAKS) { + ENCM () + Store (0x0A, LDN) + Store (CRE3, Local0) + EXCM () + Return (Local0) + } } } |