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/lid.asl | |
parent | 9018b6ee641407703a0c3967356a07d50f6bb4b5 (diff) |
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/lid.asl')
-rw-r--r-- | src/mainboard/lenovo/x60/acpi/lid.asl | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mainboard/lenovo/x60/acpi/lid.asl b/src/mainboard/lenovo/x60/acpi/lid.asl index 2c92ee67e0..2dfa8d116d 100644 --- a/src/mainboard/lenovo/x60/acpi/lid.asl +++ b/src/mainboard/lenovo/x60/acpi/lid.asl @@ -21,9 +21,12 @@ Field(ERAM, ByteAcc, NoLock, Preserve) { + Offset (0x32), + , 2, + WKLD, 1, Offset (0x46), - , 2, - LIDS , 1 + , 2, + LIDS, 1 } Device(LID) @@ -34,4 +37,18 @@ Device(LID) { return (LIDS) } + + Method(_PRW, 0, NotSerialized) + { + Return (Package() { 0x18, 0x03 }) + } + + Method(_PSW, 1, NotSerialized) + { + if (Arg0) { + Store(1, WKLD) + } else { + Store(0, WKLD) + } + } } |