summaryrefslogtreecommitdiff
path: root/src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-18 21:29:59 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-04-20 21:34:01 +0200
commitc38d9913878019bbe476b8b8bc5631846ef2e58f (patch)
treed340dfd21796076aa4125b756cdb25ea2f58302b /src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl
parentc4e7db51fc83b99c43b25a8f698a9d007ed45dc6 (diff)
downloadcoreboot-c38d9913878019bbe476b8b8bc5631846ef2e58f.tar.xz
hp/pavilion_m6_1035dx: Suspend/resume on lid close/open with ACPI
This patch completes ACPI support for the lid switch. The lid SCI now notifies the OSPM of the status change when the lid is closed or opened, allowing system to suspend. The wake source is also declares, and the system wakes when the lid is opened. The system resumes successfully, but the display still does not come back on. Change-Id: I803c4fc64e15f8d1a90791ec246af66604646d8b Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/5549 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl')
-rw-r--r--src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl b/src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl
index a240308c78..f228691fc3 100644
--- a/src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl
+++ b/src/mainboard/hp/pavilion_m6_1035dx/acpi/gpe.asl
@@ -54,6 +54,15 @@ Scope(\_GPE) { /* Start Scope GPE */
/* DBGO("\\_GPE\\_L11\n") */
}
+ /* Lid switch opened or closed */
+ Method(_L16) {
+ Store("Lid status changed", Debug)
+ /* Flip trigger polarity */
+ Not(LPOL, LPOL)
+ /* Notify lid object of status change */
+ Notify(\_SB.LID, 0x80)
+ }
+
/* GPIO0 or GEvent8 event */
Method(_L18) {
/* DBGO("\\_GPE\\_L18\n") */