summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-11-22 21:22:17 +0800
committerCommit Bot <commit-bot@chromium.org>2021-11-23 05:51:23 +0000
commitd26f089259183a224c508b2e7fcdc0a4d25965ee (patch)
tree87bc2290e582b2fc9c6fb4504533216bedd4dd34
parentb78ce14f4f3aef5b166d43350cfc1f17472b8b36 (diff)
downloadchrome-ec-d26f089259183a224c508b2e7fcdc0a4d25965ee.tar.gz
Cherry: add MKBP_EVENT_WAKEUP_MASK
Config MKBP_EVENT_WAKEUP_MASK properly so EC won't wake AP up in S3. BUG=b:205032443 TEST=suspend_stress_test for 1000 cycles, no premature wakeup by ec BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I36f424366633d749c942601eeaf0df091f3fd291 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3295842 Reviewed-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--baseboard/cherry/baseboard.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/baseboard/cherry/baseboard.h b/baseboard/cherry/baseboard.h
index 2a4705e541..6f5a98b786 100644
--- a/baseboard/cherry/baseboard.h
+++ b/baseboard/cherry/baseboard.h
@@ -208,6 +208,11 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE) | \
EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON))
+/* And the MKBP events */
+#define CONFIG_MKBP_EVENT_WAKEUP_MASK \
+ (BIT(EC_MKBP_EVENT_KEY_MATRIX) | \
+ BIT(EC_MKBP_EVENT_HOST_EVENT))
+
#ifndef __ASSEMBLER__
#include "gpio_signal.h"