diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-06-02 18:26:43 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-03 21:01:26 +0000 |
commit | 904bf6f5758a301103e598a1514a2d9de1577c12 (patch) | |
tree | db8165a2be39e0597c95d315be0779420528bbbb /chip/lm4/i2c.c | |
parent | c70fb0f9ebeb175671a0b662048ad3a6531fe91f (diff) | |
download | chrome-ec-904bf6f5758a301103e598a1514a2d9de1577c12.tar.gz |
mec1322: Implement i2c_set_timeout
Allow timeout to be set at runtime by controller.
BUG=chrome-os-partner:40780
TEST=Manual on Glados. Verify PD I2C communication is functional.
BRANCH=None
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I582e47c7bebfed7a639789c90064d86ffe1a5401
Reviewed-on: https://chromium-review.googlesource.com/274967
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'chip/lm4/i2c.c')
-rw-r--r-- | chip/lm4/i2c.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/lm4/i2c.c b/chip/lm4/i2c.c index 72d02d2043..9f3db7426f 100644 --- a/chip/lm4/i2c.c +++ b/chip/lm4/i2c.c @@ -48,9 +48,6 @@ */ #define I2C_IDLE_US 500 -/* Default maximum time we allow for an I2C transfer */ -#define I2C_TIMEOUT_DEFAULT_US (100 * MSEC) - /* IRQ for each port */ static const uint32_t i2c_irqs[] = {LM4_IRQ_I2C0, LM4_IRQ_I2C1, LM4_IRQ_I2C2, LM4_IRQ_I2C3, LM4_IRQ_I2C4, LM4_IRQ_I2C5}; |