summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-05 19:26:56 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-12 21:37:38 +0200
commitac138976dfc15f3f6551bec806391700d909f3af (patch)
tree9464fa0dbc3eaaefededef92e47f0d8aef87fb86 /src/mainboard
parent27bb6ad046c40b2c85649e0da0648376aa8a966e (diff)
downloadcoreboot-ac138976dfc15f3f6551bec806391700d909f3af.tar.xz
hp/pavilion_m6_1035dx: Add ACPI support for lid switch
This is sufficient to at least allow linux to recognize the lid switch and read its state correctly. Change-Id: Id5bd92466c72559f263c7ca8d23cbc741377a762 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5464 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl
index 5c8fc6758f..47d7872bff 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl
+++ b/src/mainboard/hp/pavilion_m6_1035dx/acpi/mainboard.asl
@@ -71,3 +71,15 @@
Store("Received PNOT call (probably from EC)", Debug)
/* TODO: Implement this */
}
+
+Scope (\_SB) {
+ Device (LID0)
+ {
+ Name(_HID, EisaId("PNP0C0D"))
+ Method(_LID, 0)
+ {
+ Store (GE22, \LIDS)
+ Return (\LIDS)
+ }
+ }
+}