summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorBoris Mittelberg <bmbm@google.com>2021-03-30 19:41:07 +0000
committerCommit Bot <commit-bot@chromium.org>2021-05-10 22:34:45 +0000
commit3a2f77758104a581ade2ecb406b8d099eada6a90 (patch)
treee1e958329a24189d8ee5fe0120632e4b03682a94 /include/config.h
parentddf11157cd952a6df79aefc06c456eea426b6f10 (diff)
downloadchrome-ec-3a2f77758104a581ade2ecb406b8d099eada6a90.tar.gz
mkbp: EC buttons and switches via MKBP
Allowing EC buttons and switches to be signaled via MKBP protocol, using CONFIG_MKBP_INPUT_DEVICES. Default behaviour is unchanged. BUG=b:170966461 BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main TEST=None Signed-off-by: Boris Mittelberg <bmbm@google.com> Cq-Depend: chromium:2824044 Change-Id: Ib96f98ecb3717a8ee8963be69fb7d7eb72e6d132 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2796382
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index 5c360f6a99..dfe458c5ad 100644
--- a/include/config.h
+++ b/include/config.h
@@ -3197,6 +3197,11 @@
*/
#undef CONFIG_MKBP_EVENT_WAKEUP_MASK
+/*
+ * Send button, switch and sysrq events via MKBP protocol to the host.
+ */
+#undef CONFIG_MKBP_INPUT_DEVICES
+
/* Support memory protection unit (MPU) */
#undef CONFIG_MPU
@@ -5537,8 +5542,12 @@
/******************************************************************************/
-/* The Matrix Keyboard Protocol depends on MKBP events. */
+/* The Matrix Keyboard Protocol depends on MKBP input devices and events. */
#ifdef CONFIG_KEYBOARD_PROTOCOL_MKBP
+#define CONFIG_MKBP_INPUT_DEVICES
+#endif
+
+#if defined(CONFIG_KEYBOARD_PROTOCOL_MKBP) || defined(CONFIG_MKBP_INPUT_DEVICES)
#define CONFIG_MKBP_EVENT
#endif