From f2d1c7aca5aa87b3cfbd76fcc6db586bae9508d9 Mon Sep 17 00:00:00 2001 From: Samsp_Liu Date: Mon, 31 Aug 2020 11:08:17 +0800 Subject: volteer: Support board-specific keyboard_config Separate keyboard_scan_config keyscan_config from volteer baseboard to each project board. To meet different configurations on each board. BUG=b:149536282 BRANCH=none TEST=make buildall Change-Id: I9070953c02ff7d3eb4950191db6505b635371792 Signed-off-by: Samsp_Liu Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2383359 Tested-by: SamSP Liu Reviewed-by: Elthan Huang Reviewed-by: Keith Short Commit-Queue: SamSP Liu --- board/lingcod/board.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'board/lingcod/board.c') diff --git a/board/lingcod/board.c b/board/lingcod/board.c index ac199a4836..57b0f7d3e4 100644 --- a/board/lingcod/board.c +++ b/board/lingcod/board.c @@ -43,6 +43,23 @@ #define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args) #define CPRINTF(format, args...) cprintf(CC_CHIPSET, format, ## args) +/* Keyboard scan setting */ +struct keyboard_scan_config keyscan_config = { + /* Increase from 50 us, because KSO_02 passes through the H1. */ + .output_settle_us = 80, + /* Other values should be the same as the default configuration. */ + .debounce_down_us = 9 * MSEC, + .debounce_up_us = 30 * MSEC, + .scan_period_us = 3 * MSEC, + .min_post_scan_delay_us = 1000, + .poll_timeout_us = 100 * MSEC, + .actual_key_mask = { + 0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff, + 0xa4, 0xff, 0xfe, 0x55, 0xfa, 0xca /* full set */ + }, +}; + +/******************************************************************************/ /* * FW_CONFIG defaults for Malefor if the CBI data is not initialized. */ -- cgit v1.2.1