From 9b4be0fce06879ca6a616bedc5992a8e7ea4b086 Mon Sep 17 00:00:00 2001 From: Shaunak Saha Date: Mon, 11 Jul 2016 23:21:33 -0700 Subject: intel/amenia: Add wake-up from lid open This patch adds support to wake up from S3 on lidopen. mainboard.asl has the _PRW defined for the wakeup support in S3. BUG = chrome-os-partner:53992 TEST = Platform wakes up from S3 on lidopen. Change-Id: I48b456baf5f7e1c2f28454fa66bb90ad761bb103 Signed-off-by: Shaunak Saha Reviewed-on: https://review.coreboot.org/15618 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/intel/amenia/acpi/mainboard.asl | 2 ++ src/mainboard/intel/amenia/ec.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src/mainboard/intel/amenia') diff --git a/src/mainboard/intel/amenia/acpi/mainboard.asl b/src/mainboard/intel/amenia/acpi/mainboard.asl index a679471cd4..80f8f26fca 100644 --- a/src/mainboard/intel/amenia/acpi/mainboard.asl +++ b/src/mainboard/intel/amenia/acpi/mainboard.asl @@ -15,6 +15,7 @@ * GNU General Public License for more details. */ #include +#include "../ec.h" Scope (\_SB) { @@ -25,6 +26,7 @@ Scope (\_SB) { Return (\_SB.PCI0.LPCB.EC0.LIDS) } + Name (_PRW, Package () { GPE_EC_WAKE, 0x3 }) } Device (PWRB) diff --git a/src/mainboard/intel/amenia/ec.h b/src/mainboard/intel/amenia/ec.h index ba3962af95..d23ed07ae4 100644 --- a/src/mainboard/intel/amenia/ec.h +++ b/src/mainboard/intel/amenia/ec.h @@ -26,6 +26,9 @@ */ #define EC_SCI_GPI GPE0_DW1_11 +/* GPIO_22 is the EC_SOC_WAKE and is used to wake up from S3 on LID open */ +#define GPE_EC_WAKE GPE0_DW1_22 + #define MAINBOARD_EC_SCI_EVENTS \ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\ -- cgit v1.2.3