diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-03-23 10:49:29 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-24 02:15:45 +0000 |
commit | eb366a6d247b22b268261ec98dcba7d1c1730536 (patch) | |
tree | b03883751350c6eeb74a97a9598819eb1a0792ec /zephyr/Kconfig.keyboard | |
parent | 40b2ce056a512e30b5a8c3d368d9d19e35324b7b (diff) | |
download | chrome-ec-eb366a6d247b22b268261ec98dcba7d1c1730536.tar.gz |
zephyr: don't limit the console commands to 8042 protocol
The CrOS EC CONFIG_CMD_KEYBOARD also enables the commands ksstate
and kbpress, which are not limited to 8042 protocol. Rename the
Kconfig to drop the 8042 term and update the help.
BRANCH=None
BUG=b:183445211
TEST=Built the image correctly. With the following CLs, tested
the keyboard working on Lazor.
Change-Id: Ib53446f8264d6f72157f989a1506e1bac9bd9023
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2782366
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r-- | zephyr/Kconfig.keyboard | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard index e2360e262f..f0e4c96660 100644 --- a/zephyr/Kconfig.keyboard +++ b/zephyr/Kconfig.keyboard @@ -126,11 +126,17 @@ config PLATFORM_EC_VOLUME_BUTTONS Your board must define GPIO_VOLUME_UP_L and GPIO_VOLUME_DOWN_L in gpio_map.h -config PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042 - bool "Console command: i8042" - default y if PLATFORM_EC_KEYBOARD_PROTOCOL_8042 +config PLATFORM_EC_CONSOLE_CMD_KEYBOARD + bool "Console command: ksstate, kbpress, 8042" + default y if PLATFORM_EC_KEYBOARD help - This command prints the state of the i8042 keyboard protocol and + Enable keyboard related console commands. + + ksstate - Show or toggle printing keyboard scan state + kbpress - Simulate keypress + + If PLATFORM_EC_KEYBOARD_PROTOCOL_8042 is enabled, it includes 8042 + command which prints the state of the i8042 keyboard protocol and includes the following subcommands: codeset - Get/set keyboard codeset |