diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2016-12-13 09:46:54 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-12-13 17:51:33 -0800 |
commit | b7a425e0d02b6c4a49732c3bbe13f09a619be01e (patch) | |
tree | 516ba0bb2d8a763819f617918828c24b950cc1b4 | |
parent | aff701c5743b0200a0f24cc606ab8a87d41e9bd8 (diff) | |
download | chrome-ec-b7a425e0d02b6c4a49732c3bbe13f09a619be01e.tar.gz |
reef/electro: modify keyboard scan rate
(from CL:415672)
Slow the keyboard scan rate from 50 us to 80 us. This compensates the
additional delay added to the KBO line by Silego / H1.
BUG=chrome-os-partner:60335,chrome-os-partner:60615
BRANCH=reef
TEST=check press key "f3" then system only output "f3" scan code.
Change-Id: Icaa8f040c20f72b1fa1c9260f86b29da8c69ec2b
Reviewed-on: https://chromium-review.googlesource.com/419577
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | board/reef/board.c | 20 | ||||
-rw-r--r-- | board/reef/board.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/board/reef/board.c b/board/reef/board.c index 127e167a08..9e4a69d21d 100644 --- a/board/reef/board.c +++ b/board/reef/board.c @@ -1028,3 +1028,23 @@ int board_get_version(void) CPRINTS("Board version: %d\n", version); return version; } + +/* Keyboard scan setting */ +struct keyboard_scan_config keyscan_config = { + /* + * F3 key scan cycle completed but scan input is not + * charging to logic high when EC start scan next + * column for "T" key, so we set .output_settle_us + * to 80us from 50us. + */ + .output_settle_us = 80, + .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 */ + }, +}; diff --git a/board/reef/board.h b/board/reef/board.h index c43ec225df..a21a9883ca 100644 --- a/board/reef/board.h +++ b/board/reef/board.h @@ -132,6 +132,7 @@ #define CONFIG_HOSTCMD_FLASH_SPI_INFO #define CONFIG_I2C #define CONFIG_I2C_MASTER +#define CONFIG_KEYBOARD_BOARD_CONFIG #define CONFIG_KEYBOARD_PROTOCOL_8042 #define CONFIG_KEYBOARD_COL2_INVERTED #define CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI2 |