From 40d4089f5c03e192e52ef1c8bbeb9873c992dd04 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 6 Mar 2017 22:47:14 -0800 Subject: mainboard/google/poppy: Add EC_HOST_EVENT_MODE_CHANGE to wakeup source Allow EC mode change event to wake AP up in S3. BUG=b:35775085 BRANCH=None TEST=Compiles successfully for poppy. Change-Id: I6f1546c60aef6620e22cdce2fab3a2709e6556a1 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/18608 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie Reviewed-by: Aaron Durbin --- src/mainboard/google/poppy/ec.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/poppy/ec.h b/src/mainboard/google/poppy/ec.h index 5ee71ceb97..7b53bfe12e 100644 --- a/src/mainboard/google/poppy/ec.h +++ b/src/mainboard/google/poppy/ec.h @@ -44,10 +44,14 @@ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) -/* EC can wake from S3 with lid or power button or key press */ +/* + * EC can wake from S3 with lid or power button or key press or + * mode change event. + */ #define MAINBOARD_EC_S3_WAKE_EVENTS \ (MAINBOARD_EC_S5_WAKE_EVENTS |\ - EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED)) + EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED) |\ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE)) /* Log EC wake events plus EC shutdown events */ #define MAINBOARD_EC_LOG_EVENTS \ -- cgit v1.2.3