diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-06 11:21:07 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-07 01:26:10 +0000 |
commit | c28fa1ade5eb35534a85ce82060cf955151c6337 (patch) | |
tree | 98b97d3cc57b3c083a098ccf1175ce95942147a2 /zephyr | |
parent | 9af5df80b12b7a4d1462507e23d4b3100f6f371b (diff) | |
download | chrome-ec-c28fa1ade5eb35534a85ce82060cf955151c6337.tar.gz |
zephyr: Enable the '8042' command
This is used to provide information about the keyboard operation.
Enable this command and its subcommands.
Note that in ECOS these subcommands are also top-level commands, but
this is not the case in Zephyr, since it seems unnecessary.
Note also that changing these to console sub-commands may end up making
FAFT testing more difficult since the invocation on the EC UART would
be different.
BUG=b:167405015
BRANCH=none
TEST=make BOARD=volteer
zmake configure .../zephyr-chrome/projects/experimental/volteer \
-B /tmp/z/cos
zmake build /tmp/z/cos
Run on volteer and try out '8042 kbd', etc.
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: Ia11092af350247ac98681485a9ddd309c7192272
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523452
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig | 13 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 82637ff5cd..73e1a0feec 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -53,6 +53,19 @@ config PLATFORM_EC_KEYBOARD_PROTOCOL_8042 endchoice # PLATFORM_EC_KEYBOARD +config PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042 + bool "Enable the keyboard commands" + default y if PLATFORM_EC_KEYBOARD_PROTOCOL_8042 + help + Enable the '8042' command, which includes the following subcommands: + + codeset - Get/set keyboard codeset + ctrlram - Get/set keyboard controller RAM + internal - Show internal information + kbd - Print or toggle keyboard info + kblog - Print or toggle keyboard event log (current disabled) + typematic - Get/set typematic delays + menuconfig PLATFORM_EC_TIMER bool "Enable the EC timer module" default y diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index a9a0bb651a..511d934bc5 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -29,6 +29,11 @@ #define CONFIG_CMD_GETTIME #endif /* CONFIG_PLATFORM_EC_TIMER_CMD_GETTIME */ +#undef CONFIG_CMD_KEYBOARD +#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_KEYBOARD_8042 +#define CONFIG_CMD_KEYBOARD +#endif + #undef CONFIG_KEYBOARD_PROTOCOL_8042 #ifdef CONFIG_PLATFORM_EC_KEYBOARD_PROTOCOL_8042 #define CONFIG_KEYBOARD_PROTOCOL_8042 |