summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMengqi Guo <mqg@chromium.org>2019-02-14 18:14:31 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-18 20:22:53 +0000
commit23e30138303c38248dc5c22d0b539151e430a96d (patch)
tree82a495ebe4258839a4cdbb86630d54ce687446dd
parenteb8433734456e9b24f6cbb3d8c88fa9b903cc19f (diff)
downloadcoreboot-23e30138303c38248dc5c22d0b539151e430a96d.tar.xz
mb/google/kahlee: Enable mode change as wake source for S3
This change enables mode change as a wake source for S3. BUG=b:124132058 Change-Id: I95b1eac800858ab17cdf69bdd3f2c5828516c184 Signed-off-by: Mengqi Guo <mqg@chromium.org> Reviewed-on: https://review.coreboot.org/c/31429 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h
index 976b621853..ae648b5308 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h
+++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/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 \