summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-06-02 18:26:43 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-03 21:01:26 +0000
commit904bf6f5758a301103e598a1514a2d9de1577c12 (patch)
treedb8165a2be39e0597c95d315be0779420528bbbb /include/i2c.h
parentc70fb0f9ebeb175671a0b662048ad3a6531fe91f (diff)
downloadchrome-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 'include/i2c.h')
-rw-r--r--include/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index f3495bac41..798c831318 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -145,6 +145,9 @@ int i2c_raw_mode(int port, int enable);
*/
void i2c_lock(int port, int lock);
+/* Default maximum time we allow for an I2C transfer */
+#define I2C_TIMEOUT_DEFAULT_US (100 * MSEC)
+
/**
* Set the timeout for an I2C transaction.
*