diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-03-14 13:42:08 +0000 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2011-03-14 13:42:08 +0000 |
commit | b188a9309d265e4dd2965c874831df32875e49b9 (patch) | |
tree | a79d03ddd80911e57130beb782af1c1448b15920 /src/mainboard/lenovo/x60/acpi/sleepbutton.asl | |
parent | 9018b6ee641407703a0c3967356a07d50f6bb4b5 (diff) | |
download | coreboot-b188a9309d265e4dd2965c874831df32875e49b9.tar.xz |
X60: Add _PRW/_PSW methods to LID/SLPB objects
This patch adds the required methods for enabling/disabling
the LID and SLPB objects as wake source. On Thinkpads, the
Fn key can (and is by the Vendor BIOS) programmed as Wake source,
so let's do it the same way.
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6444 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/lenovo/x60/acpi/sleepbutton.asl')
-rw-r--r-- | src/mainboard/lenovo/x60/acpi/sleepbutton.asl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/acpi/sleepbutton.asl b/src/mainboard/lenovo/x60/acpi/sleepbutton.asl index c339158b31..09e88aa74e 100644 --- a/src/mainboard/lenovo/x60/acpi/sleepbutton.asl +++ b/src/mainboard/lenovo/x60/acpi/sleepbutton.asl @@ -19,7 +19,31 @@ * MA 02110-1301 USA */ +Field(ERAM, ByteAcc, NoLock, Preserve) +{ + Offset (0x32), + , 4, + WKFN, 1, + Offset(0x83), + FNKY, 8 +} + Device(SLPB) { Name (_HID, EisaId ("PNP0C0E")) + Method(_PRW, 0, NotSerialized) + { + Return (Package() { 0x18, 0x03 }) + } + + Method(_PSW, 1, NotSerialized) + { + if (Arg0) { + Store(6, FNKY) /* Fn key acts as wake button */ + Store(1, WKFN) + } else { + Store(0, FNKY) /* Fn key normal operation */ + Store(0, WKFN) + } + } } |