summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorli feng <li1.feng@intel.com>2015-06-02 18:23:20 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-04 20:51:07 +0000
commit5b2e673948086bd9a63ffabc96beb98e6409d549 (patch)
tree7ff4250a44004e14a250d7ed66c29d48597e944f /include
parentf64945d8d12a061bc8ce2ba31077c9fc3cac8947 (diff)
downloadchrome-ec-5b2e673948086bd9a63ffabc96beb98e6409d549.tar.gz
i2c: Retry i2c operation if fails on nack'd(EC_ERROR_BUSY).
Retry count is defined by CONFIG_I2C_NACK_RETRY_COUNT. BUG=chrome-os-partner:37494 TEST=Tested on Cyan, observed retry happens on nack'd i2c. BRANCH=None Signed-off-by: li feng <li1.feng@intel.com> Change-Id: I73ed15a52335de6c5a5b647660bfe431a8238716 Reviewed-on: https://chromium-review.googlesource.com/274689 Reviewed-by: Shawn N <shawnn@chromium.org> Commit-Queue: Divya Jyothi <divya.jyothi@intel.com> Tested-by: Divya Jyothi <divya.jyothi@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index b670d748ad..b867a440ab 100644
--- a/include/config.h
+++ b/include/config.h
@@ -805,6 +805,8 @@
#undef CONFIG_I2C_PASSTHROUGH
#undef CONFIG_I2C_PASSTHRU_RESTRICTED
+/* Defines I2C operation retry count when slave nack'd(EC_ERROR_BUSY) */
+#define CONFIG_I2C_NACK_RETRY_COUNT 0
/*
* I2C SCL gating.
*
@@ -1381,7 +1383,7 @@
/* Compile chip support for the USB device controller */
#undef CONFIG_USB
-/* USB device buffers and descriptors in dedicated RAM */
+/* USB device buffers and descriptors */
#undef CONFIG_USB_RAM_ACCESS_SIZE
#undef CONFIG_USB_RAM_ACCESS_TYPE
#undef CONFIG_USB_RAM_BASE