diff options
author | Boris Mittelberg <bmbm@google.com> | 2021-04-13 22:49:42 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-10 22:34:46 +0000 |
commit | fa985803d6bd7c76b8eddc49d1bab4434cc545f3 (patch) | |
tree | ff2645c8fdd0c8c36a68d89b3e4536f2bc538643 /board/scarlet | |
parent | 3a2f77758104a581ade2ecb406b8d099eada6a90 (diff) | |
download | chrome-ec-fa985803d6bd7c76b8eddc49d1bab4434cc545f3.tar.gz |
mkbp: Move key simulation to input devices
Today some platforms include MKBP_KEYBOARD because they use side buttons,
switches or other events that share the same driver with MKBP keyboard.
Those platforms don't enable KEYSCAN task. The CL is moving key emulation
functionality to MKBP input devices, to make a clear separation
between the real keyboard usage and emulation/buttons/switches/etc.
All boards that were selecting `CONFIG_KEYBOARD_PROTOCOL_MKBP` without
KEYSCAN task are now updated to select `CONFIG_MKBP_INPUT_DEVICES`
BUG=b:170966461
BRANCH=main,firmware-dedede-13606.B,firmware-volteer-13672.B-main
TEST=None
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: I515140ebf6e175f4b29991329f92266ffca232a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2824044
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h index 12d4d14c87..318ec0911d 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -181,7 +181,8 @@ /* Enable Accel over SPI */ #define CONFIG_SPI_ACCEL_PORT 0 /* The first SPI master port (SPI2) */ -#define CONFIG_KEYBOARD_PROTOCOL_MKBP +#define CONFIG_KEYBOARD_PROTOCOL_ +#define CONFIG_MKBP_INPUT_DEVICES #define CONFIG_MKBP_EVENT #define CONFIG_MKBP_USE_GPIO /* Define the host events which are allowed to wakeup AP in S3. */ |