summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2016-11-03 18:26:37 (GMT)
committerchrome-bot <chrome-bot@chromium.org>2016-11-04 06:15:30 (GMT)
commit167f4c7dd97049aa08f098871ca3b407813e3e5c (patch)
tree609c36a2cdd113151f8fc28705f8f7bd558dbca3 /src
parent746fb6a352bdb183af38939e09865f49c1907294 (diff)
downloaddepthcharge-167f4c7dd97049aa08f098871ca3b407813e3e5c.tar.gz
depthcharge-167f4c7dd97049aa08f098871ca3b407813e3e5c.tar.xz
i2c: designware: Increase transaction timeout
During testing with devices at 100khz we saw that transactions could take more than 4ms to complete on the bus. Increase this timeout so it can accommodate testing with devices at standard speed. BUG=chrome-os-partner:58666 BRANCH=none TEST=boot on eve with cr50 and I2C bus at 100khz Change-Id: Icb200fc6dd8a5f33c392957e9bfa712dadbf0818 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/406506 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/bus/i2c/designware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/bus/i2c/designware.c b/src/drivers/bus/i2c/designware.c
index 652d5ab..2b4d6e6 100644
--- a/src/drivers/bus/i2c/designware.c
+++ b/src/drivers/bus/i2c/designware.c
@@ -151,7 +151,7 @@ enum {
};
enum {
- TIMEOUT_US = 4000
+ TIMEOUT_US = 10000
};
static void i2c_enable(DesignwareI2cRegs *regs)