summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2016-09-01 14:22:34 -0700
committerMartin Roth <martinroth@google.com>2016-09-04 05:31:37 +0200
commitd1cab6650261a2e6e75ff85b1868d723f1e1cc79 (patch)
treea5ab23cd225865ff0cf7db8162c1db73ecfa37bb /src/soc/intel
parent36d405268f040208cd26902f3c0b5346f7d4d25b (diff)
downloadcoreboot-d1cab6650261a2e6e75ff85b1868d723f1e1cc79.tar.xz
lpss_i2c: Increase default timeout to 4ms
Increase the default timeout in the LPSS I2C driver to 4ms from 2ms. During testing with some slower devices I found that the existing timeout could be too short leading to transaction failures. Change-Id: Ied86c7a0aa26d55b31f447c5938803c194d0045e Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://review.coreboot.org/16392 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/common/lpss_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/lpss_i2c.c b/src/soc/intel/common/lpss_i2c.c
index a9bbbb32a7..0c8fec44b5 100644
--- a/src/soc/intel/common/lpss_i2c.c
+++ b/src/soc/intel/common/lpss_i2c.c
@@ -60,8 +60,8 @@ struct lpss_i2c_regs {
uint32_t tx_abort_source;
} __attribute__((packed));
-/* Use a ~2ms timeout for various operations */
-#define LPSS_I2C_TIMEOUT_US 2000
+/* Use a ~4ms timeout for various operations */
+#define LPSS_I2C_TIMEOUT_US 4000
/* High and low times in different speed modes (in ns) */
enum {