summaryrefslogtreecommitdiff
path: root/board/snappy/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/snappy/board.c')
-rw-r--r--board/snappy/board.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/board/snappy/board.c b/board/snappy/board.c
index c7edd3547a..3b473a5ce0 100644
--- a/board/snappy/board.c
+++ b/board/snappy/board.c
@@ -1010,6 +1010,26 @@ int board_get_version(void)
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 */
+ },
+};
+
#ifdef CONFIG_KEYBOARD_FACTORY_TEST
/*
* We have total 21 pins for keyboard connecter, {-1, -1} mean