diff options
author | Madhu M <madhu.m@intel.corp-partner.google.com> | 2021-02-10 11:34:26 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-19 19:17:54 +0000 |
commit | e1b5a71ac27bc6bcac0c4fc304b3f1784e8048b5 (patch) | |
tree | 17356a2a58e2f4f5ec5a46e326948149d35e8d82 | |
parent | 06b1485fb70eccb6bfc5dcd5b3dc4384e7a53028 (diff) | |
download | chrome-ec-e1b5a71ac27bc6bcac0c4fc304b3f1784e8048b5.tar.gz |
volteer: Enable button console command
Enabled compiler switch for volteer board to simulate button operations.
BUG=None
BRANCH=None
TEST=Tested on delbin/voxel board.
From EC console, entered the below commands:
$ button vup 1000
Observed volume UP key press on display
$ button vdown 1000
Observed volume DOWN key press on display
Signed-off-by: Madhu M <madhu.m@intel.corp-partner.google.com>
Change-Id: I5ba3abfba25e29bbd96997c9321e3718b4b1c0bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2686975
Reviewed-by: Keith Short <keithshort@chromium.org>
Tested-by: Madhu M <madhu.m@intel.com>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | baseboard/volteer/baseboard.h | 6 | ||||
-rw-r--r-- | board/volteer/board.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h index ca10f4db24..19485510d6 100644 --- a/baseboard/volteer/baseboard.h +++ b/baseboard/volteer/baseboard.h @@ -231,6 +231,12 @@ #define CONFIG_USBC_RETIMER_INTEL_BB_RUNTIME_CONFIG #define CONFIG_USBC_RETIMER_FW_UPDATE +/* Enable volume button command in EC console */ +#define CONFIG_CMD_BUTTON + +/* Enable volume button in ectool */ +#define CONFIG_HOSTCMD_BUTTON + #ifndef __ASSEMBLER__ #include "gpio_signal.h" diff --git a/board/volteer/board.h b/board/volteer/board.h index 85ab9772a0..363ba5c438 100644 --- a/board/volteer/board.h +++ b/board/volteer/board.h @@ -156,6 +156,12 @@ #define CONFIG_DEBUG_ASSERT_BRIEF +/* Disable volume button command in EC console */ +#undef CONFIG_CMD_BUTTON + +/* Disable volume button in ectool */ +#undef CONFIG_HOSTCMD_BUTTON + #ifndef __ASSEMBLER__ #include "gpio_signal.h" |