summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2021-06-24 09:27:09 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-28 23:30:36 +0000
commit92a6d035526a4914e03e06d4eb7b0a6c928938e2 (patch)
treef0bc809492890f8dd056fbc177fe615f37b2c3a8 /zephyr/Kconfig
parent9679fba5d5dec3e68401ad56c4137c055116d683 (diff)
downloadchrome-ec-92a6d035526a4914e03e06d4eb7b0a6c928938e2.tar.gz
zephyr: add support for mkbp wake event mask
Add support in the devicetree for masking mkbp events to prevent said events from waking up a suspended system. BUG=b:190503252 BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: Ib53b8f96c2fb4704e25ce4fb62eb277a16d92cd9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2985820
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig26
1 files changed, 26 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 5bd8be5006..5c01a09314 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -418,6 +418,32 @@ config PLATFORM_EC_MKBP_EVENT
This requires a MKBP event delivery method(GPIO, HOST_EVENT, and etc)
+config PLATFORM_EC_MKBP_EVENT_WAKEUP_MASK
+ bool "MKBP event wakeup mask"
+ depends on PLATFORM_EC_MKBP_EVENT
+ help
+ Enable which MKBP events should wakeup the system in suspend.
+ For example:
+ The MKBP events are enabled in the devicetree by the wakeup-mask
+ property of the ec-mkbp-event-wakeup-mask node as follows:
+ wakeup-mask = <(MKBP_EVENT_KEY_MATRIX | \
+ MKBP_EVENT_HOST_EVENT | \
+ MKBP_EVENT_SENSOR_FIFO)>;
+ The mkbp events are defined in dt-bindings/wake_mask_event_defines.h
+
+config PLATFORM_EC_MKBP_HOST_EVENT_WAKEUP_MASK
+ bool "MKBP host event wakeup mask"
+ depends on PLATFORM_EC_MKBP_EVENT
+ help
+ Enable which host events should wakeup the system in suspend.
+ For example:
+ The host events are enabled in the devicetree by the wakeup-mask
+ property of the ec-mkbp-host-event-wakeup-mask node as follows:
+ wakeup-mask = <(HOST_EVENT_LID_OPEN | \
+ HOST_EVENT_POWER_BUTTON | \
+ HOST_EVENT_AC_CONNECTED)>;
+ The host events are defined in dt-bindings/wake_mask_event_defines.h
+
config PLATFORM_EC_MPU
bool "Support Memory-Protection Unit (MPU)"
depends on CPU_CORTEX_M