summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2019-07-02 10:53:17 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-17 01:53:49 +0000
commit360e4f98701a0309c35891f3dbea26739127e8f4 (patch)
treeb1d314939daa3427b90659d734f429e5f98f5c23 /include
parent60d6db8fbf5bae84b94b6dac8ea8c70a08e30555 (diff)
downloadchrome-ec-360e4f98701a0309c35891f3dbea26739127e8f4.tar.gz
config: Add CONFIG_MKBP_EVENT_WAKEUP_MASK
This commit adds a new CONFIG_* option, CONFIG_MKBP_EVENT_WAKEUP_MASK. This allows a board to specify which MKBP events are allowed to wake the system when it is in suspend. BUG=b:136282898,chromium:786721 BRANCH=None TEST=With some other code, flash nocturne, suspend DUT, verify that only the MKBP events in the CONFIG_MKBP_EVENT_WAKEUP_MASK wake the system up. Change-Id: Ib4d04418aacab209d0e26703500df119924090b7 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1685785 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index 4f349a5050..546833b26f 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2682,10 +2682,27 @@
/*
* If using MKBP to send host events, with this option, we can define the host
- * events that should wake the system in suspend.
+ * events that should wake the system in suspend. Some examples are:
+ *
+ * EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN)
+ * EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED)
+ *
+ * The only things that should be in this mask are:
+ * EC_HOST_EVENT_MASK(EC_HOST_EVENT_*)
*/
#undef CONFIG_MKBP_HOST_EVENT_WAKEUP_MASK
+/*
+ * Define which MKBP events should wakeup the system in suspend. Some examples
+ * are:
+ *
+ * EC_MKBP_EVENT_KEY_MATRIX
+ * EC_MKBP_EVENT_SWITCH
+ *
+ * The only things that should be in this mask are EC_MKBP_EVENT_*.
+ */
+#undef CONFIG_MKBP_EVENT_WAKEUP_MASK
+
/* Support memory protection unit (MPU) */
#undef CONFIG_MPU