From fa985803d6bd7c76b8eddc49d1bab4434cc545f3 Mon Sep 17 00:00:00 2001 From: Boris Mittelberg Date: Tue, 13 Apr 2021 22:49:42 +0000 Subject: 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 Change-Id: I515140ebf6e175f4b29991329f92266ffca232a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2824044 --- board/kodama/board.h | 1 + 1 file changed, 1 insertion(+) (limited to 'board/kodama') diff --git a/board/kodama/board.h b/board/kodama/board.h index 60bace8cc8..98e9b219ac 100644 --- a/board/kodama/board.h +++ b/board/kodama/board.h @@ -63,6 +63,7 @@ #define I2C_PORT_VIRTUAL_BATTERY I2C_PORT_BATTERY /* Define the host events which are allowed to wakeup AP in S3. */ +#define CONFIG_MKBP_INPUT_DEVICES #define CONFIG_MKBP_HOST_EVENT_WAKEUP_MASK \ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) -- cgit v1.2.1