summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Chao <scott.chao@bitland.corp-partner.google.com>2020-03-30 08:58:49 +0800
committerCommit Bot <commit-bot@chromium.org>2020-03-30 11:11:31 +0000
commit68048d1f5846ab6894c1a434d15ddca06c738b24 (patch)
tree187a3d68866d315187eb322c8eccc3a781113b9b
parent5a9256d981a217615a0f13418de22afa33875f5d (diff)
downloadchrome-ec-68048d1f5846ab6894c1a434d15ddca06c738b24.tar.gz
damu: reduce bitbang failrate
apply CL:2050003 to damu. BUG=b:152456966 BRANCH=kukui TEST=make -j BOARD=damu TEST=make buildall Change-Id: I397b8e2ae548080e4d6d3cd75f3e57b10080f09a Signed-off-by: Scott Chao <scott.chao@bitland.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2124431 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/damu/board.c4
-rw-r--r--board/damu/board.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/board/damu/board.c b/board/damu/board.c
index 278c76727a..19d3dbed00 100644
--- a/board/damu/board.c
+++ b/board/damu/board.c
@@ -97,8 +97,8 @@ struct keyboard_scan_config keyscan_config = {
.output_settle_us = 35,
.debounce_down_us = 5 * MSEC,
.debounce_up_us = 40 * MSEC,
- .scan_period_us = 3 * MSEC,
- .min_post_scan_delay_us = 1000,
+ .scan_period_us = 10 * MSEC,
+ .min_post_scan_delay_us = 10 * MSEC,
.poll_timeout_us = 100 * MSEC,
.actual_key_mask = {
0x14, 0xff, 0xff, 0xff, 0xff, 0xf5, 0xff,
diff --git a/board/damu/board.h b/board/damu/board.h
index c1c74cdc27..64d0702fa9 100644
--- a/board/damu/board.h
+++ b/board/damu/board.h
@@ -39,7 +39,7 @@
#undef I2C_BITBANG_PORT_COUNT
#define I2C_BITBANG_PORT_COUNT 1
#undef CONFIG_I2C_NACK_RETRY_COUNT
-#define CONFIG_I2C_NACK_RETRY_COUNT 3
+#define CONFIG_I2C_NACK_RETRY_COUNT 10
#define CONFIG_SMBUS_PEC
#define CONFIG_USB_PD_TCPM_FUSB302