diff options
-rw-r--r-- | zephyr/Kconfig.keyboard | 6 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 11 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 diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index 4ee6fb6773..626d9b6027 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -442,6 +442,11 @@ #define CONFIG_VOLUME_BUTTONS #endif +#undef CONFIG_CMD_BUTTON +#ifdef CONFIG_PLATFORM_EC_CMD_BUTTON +#define CONFIG_CMD_BUTTON +#endif + #undef CONFIG_PWM_KBLIGHT #undef CONFIG_KEYBOARD_BACKLIGHT #ifdef CONFIG_PLATFORM_EC_PWM_KBLIGHT |