From f006caeb57a7a3f5495a13537e40b8d09152f993 Mon Sep 17 00:00:00 2001 From: Wei Shun Chang Date: Wed, 29 Oct 2014 09:01:19 +0800 Subject: [PATCH] auron: Add _PRW for LID0 ACPI Device The kernel will not track wakeup events for devices unless they have a defined _PRW. There is no EC output of the lid signal coming to a GPIO and instead it pulses WAKE#. There is no actual GPE for WAKE# so pretend that PCI_EXP is the right GPE. From the EDS: "WAKE# is treated as a wake event, but does not cause any bits to go active in the GPE_STS register." BUG=chromium:427769 BRANCH=none TEST=manual on auron - Run lidclose + lidopen in rapid succession, verify that suspend request is aborted. Change-Id: I116f3b98f5f31f3ded7c6b403ffa35724176a52d Signed-off-by: Wei Shun Chang Reviewed-on: https://chromium-review.googlesource.com/226160 Reviewed-by: Duncan Laurie --- src/mainboard/google/auron/acpi/mainboard.asl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/google/auron/acpi/mainboard.asl b/src/mainboard/google/auron/acpi/mainboard.asl index c489402bf3..488401c594 100644 --- a/src/mainboard/google/auron/acpi/mainboard.asl +++ b/src/mainboard/google/auron/acpi/mainboard.asl @@ -31,6 +31,11 @@ Scope (\_SB) Store (\_SB.PCI0.LPCB.EC0.LIDS, \LIDS) Return (\LIDS) } + + + // There is no GPIO for LID, the EC pulses WAKE# pin instead. + // There is no GPE for WAKE#, so fake it with PCI_EXP_WAKE + Name (_PRW, Package(){ 0x69, 5 }) // PCI_EXP } Device (PWRB)