summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaunak Saha <shaunak.saha@intel.com>2016-07-11 23:21:33 -0700
committerAaron Durbin <adurbin@chromium.org>2016-07-15 21:02:20 +0200
commit9b4be0fce06879ca6a616bedc5992a8e7ea4b086 (patch)
treea202e0a7d5a9d72d0897b23f219ad73ff4cae6f0
parent89e7b49a114f60f2fddf5f409dea0025785d4604 (diff)
downloadcoreboot-9b4be0fce06879ca6a616bedc5992a8e7ea4b086.tar.xz
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 <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15618 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/mainboard/intel/amenia/acpi/mainboard.asl2
-rw-r--r--src/mainboard/intel/amenia/ec.h3
2 files changed, 5 insertions, 0 deletions
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 <on_board.h>
+#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) |\