diff options
author | YongBeum.Ha <ybha@samsung.corp-partner.google.com> | 2021-03-09 10:39:24 +0900 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-10 05:42:11 +0000 |
commit | c41de27e7dafae672a9e97f19a7f1ee648598191 (patch) | |
tree | 513ca60bfe3375e79c40aba7fc73723b16da829a | |
parent | f201281c75c7bbb27b8fddcbeaf7c7abc6d03aa1 (diff) | |
download | chrome-ec-c41de27e7dafae672a9e97f19a7f1ee648598191.tar.gz |
nightfury : change key debounce time
change key-down debounce time to 30ms
BUG=b:181307934
BRANCH=None
TEST=make -j BOARD=nightfury
Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com>
Change-Id: I07c7f433b7b071ca20f2ab570a251580771092d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2744760
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Commit-Queue: Boris Mittelberg <bmbm@google.com>
-rw-r--r-- | baseboard/hatch/baseboard.c | 4 | ||||
-rw-r--r-- | board/nightfury/board.h | 1 | ||||
-rw-r--r-- | include/config.h | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/baseboard/hatch/baseboard.c b/baseboard/hatch/baseboard.c index 67b31b5742..d6878f3a4a 100644 --- a/baseboard/hatch/baseboard.c +++ b/baseboard/hatch/baseboard.c @@ -56,7 +56,11 @@ struct keyboard_scan_config keyscan_config = { * to 80us from 50us. */ .output_settle_us = 80, +#ifdef CONFIG_KEYBOARD_DEBOUNCE_DOWN + .debounce_down_us = CONFIG_KEYBOARD_DEBOUNCE_DOWN * MSEC, +#else .debounce_down_us = 9 * MSEC, +#endif .debounce_up_us = 30 * MSEC, .scan_period_us = 3 * MSEC, .min_post_scan_delay_us = 1000, diff --git a/board/nightfury/board.h b/board/nightfury/board.h index 926afd35d7..e5f2f8133d 100644 --- a/board/nightfury/board.h +++ b/board/nightfury/board.h @@ -17,6 +17,7 @@ #define CONFIG_POWER_BUTTON #define CONFIG_KEYBOARD_BOARD_CONFIG #define CONFIG_KEYBOARD_PROTOCOL_8042 +#define CONFIG_KEYBOARD_DEBOUNCE_DOWN 30 #define CONFIG_LED_COMMON #define CONFIG_LOW_POWER_IDLE #define CONFIG_LED_POWER_LED diff --git a/include/config.h b/include/config.h index 6fe421bde0..ce09a03c85 100644 --- a/include/config.h +++ b/include/config.h @@ -2527,6 +2527,11 @@ */ #undef CONFIG_KEYBOARD_KEYPAD +/* + * Change key debounce time to block noise when key is pressed + */ +#undef CONFIG_KEYBOARD_DEBOUNCE_DOWN + /*****************************************************************************/ /* Support common LED interface */ |