diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-03-29 15:39:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-30 00:23:54 +0000 |
commit | ec378806aebc92062fa9e95c01d2191cf07c3c9a (patch) | |
tree | a650ae463917938e4e3211dad110d164c125f4c5 /zephyr/Kconfig.keyboard | |
parent | 6434079af8371e54e675d5e9bc985fba4af9c2e9 (diff) | |
download | chrome-ec-ec378806aebc92062fa9e95c01d2191cf07c3c9a.tar.gz |
zephyr: add Kconfig for button simulation command
The Kconfig adds the console command "button", which simulates button
press. The buttons are like volume-up, volume-down, and recovery
buttons.
BRANCH=None
BUG=b:182398910
TEST=With the following CLs, which enables the Kconfig, tested the
console command.
Change-Id: I55aa409f2d98a8794f99d788d3b9588619f316da
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2792694
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r-- | zephyr/Kconfig.keyboard | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard index f0e4c96660..14514427dc 100644 --- a/zephyr/Kconfig.keyboard +++ b/zephyr/Kconfig.keyboard @@ -126,6 +126,12 @@ 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_CMD_BUTTON + bool "Console command: button" + help + This command simulates button press. The buttons are like volume-up, + volume-down, and recovery buttons. + config PLATFORM_EC_CONSOLE_CMD_KEYBOARD bool "Console command: ksstate, kbpress, 8042" default y if PLATFORM_EC_KEYBOARD |