summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-08-18 01:12:36 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2014-08-19 20:33:14 +0200
commit96a400ebc82c95d3b5da9c1c35975ed782f96c4a (patch)
treeac606737fb63c0b458f12bc60b034a760224f866 /src/mainboard
parent244675d7bc4509c4c7e6a7d3c497bc8d860caec8 (diff)
macbook21: Support wake on LID
Change-Id: Ifa1045abc761bef05977a8020cf6f18db042ad58 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/6699 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Francis Rowe <info@gluglug.org.uk> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/apple/macbook21/acpi/ec.asl14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/apple/macbook21/acpi/ec.asl b/src/mainboard/apple/macbook21/acpi/ec.asl
index 01bfb0c6a0..dc248b4799 100644
--- a/src/mainboard/apple/macbook21/acpi/ec.asl
+++ b/src/mainboard/apple/macbook21/acpi/ec.asl
@@ -101,6 +101,20 @@ Device(EC)
{
return(LIDS)
}
+
+ Method(_PRW, 0, NotSerialized)
+ {
+ Return (Package() { 0x1d, 0x03 })
+ }
+
+ Method(_PSW, 1, NotSerialized)
+ {
+ if (Arg0) {
+ Store(1, WKLD)
+ } else {
+ Store(0, WKLD)
+ }
+ }
}
Device(AC)