summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-10-04 09:43:01 -0700
committerRandall Spangler <rspangler@chromium.org>2012-10-05 12:31:53 -0700
commite5ef4ef19ce392a71a1a8cf38a526f1d2cb484d1 (patch)
tree9ec5a90d9e796dfd5537e2192a03632f9532b63c
parent86a3b439b6f831e26cc588a3ed219afab36a87ad (diff)
downloadchrome-ec-e5ef4ef19ce392a71a1a8cf38a526f1d2cb484d1.tar.gz
stm32: Reduce keyboard scan period from 10ms to 3ms
Experimentally it is possible to press a key on snow for only 4.8ms. We should aim to scan more frequently to catch those who only just touch the keys, or type very quickly. It takes a little over 2ms to complete a keyboard scan at present. We shold aim to reduce this, but for now, it seems safe to reduce the default scanning frequency to 3ms. BUG=chrome-os-partner:12179 TEST=manual Type on keyboard on snow in browser, and see that we still get results and the EC is stable. Change-Id: I60827c33a58c34dd808504e58bca480bd61f5932 BRANCH=snow Signed-off-by: Simon Glass <sjg@chromium.org> (cherry picked from commit 83db13330bb744a171d65da9378c0915d8d02d5d) Reviewed-on: https://gerrit.chromium.org/gerrit/34771 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--chip/stm32/keyboard_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/keyboard_scan.c b/chip/stm32/keyboard_scan.c
index 91c6d0b1b9..92c5c2f74d 100644
--- a/chip/stm32/keyboard_scan.c
+++ b/chip/stm32/keyboard_scan.c
@@ -93,7 +93,7 @@ static struct ec_mkbp_config config = {
EC_MKBP_VALID_DEBOUNCE_UP | EC_MKBP_VALID_FIFO_MAX_DEPTH,
.valid_flags = EC_MKBP_FLAGS_ENABLE,
.flags = EC_MKBP_FLAGS_ENABLE,
- .scan_period_us = 10000,
+ .scan_period_us = 3000,
.poll_timeout_us = 100 * 1000,
.min_post_scan_delay_us = 1000,
.output_settle_us = 50,