summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.keyboard
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-03-23 09:52:25 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-24 02:15:38 +0000
commit40b2ce056a512e30b5a8c3d368d9d19e35324b7b (patch)
treedcee5c5a0bab70faf76c9f67f1fdf261de2a6acf /zephyr/Kconfig.keyboard
parent3206186b4e234027516c1d354084615a56114172 (diff)
downloadchrome-ec-40b2ce056a512e30b5a8c3d368d9d19e35324b7b.tar.gz
zephyr: shim the MKBP-protocol keyboard support
The MKBP protocol is usually used on ARM-based platforms for keyboard communication. It sends the raw scan code, like (row, col), to the AP and the kernel driver will map the scan code to a key. BRANCH=None BUG=b:183445211 TEST=Built the image correctly. With the following CLs, tested the keyboard working on Lazor. Change-Id: I9453c3e6f6629fc11135e56bdfe909635844932c Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2782365 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r--zephyr/Kconfig.keyboard8
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard
index bacc43f4dc..e2360e262f 100644
--- a/zephyr/Kconfig.keyboard
+++ b/zephyr/Kconfig.keyboard
@@ -38,6 +38,14 @@ config PLATFORM_EC_KEYBOARD_PROTOCOL_8042
See here for docs: https://wiki.osdev.org/%228042%22_PS/2_Controller
+config PLATFORM_EC_KEYBOARD_PROTOCOL_MKBP
+ bool "mkbp"
+ help
+ Use the MKBP protocol to communicate with the AP. This protocol is
+ usually used on ARM-based platforms. It sends the raw scan code, like
+ (row, col), to the AP and the kernel driver will map this scan code to
+ a key.
+
endchoice # PLATFORM_EC_KEYBOARD
config PLATFORM_EC_KEYBOARD_BOARD_CONFIG