summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-11-13 12:56:34 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-17 18:00:39 +0000
commit8f8d017fb3e5f8d73bb415295495023353049f79 (patch)
tree30468b9673dbf3f9b042a2d120feab14a1dd1688 /include/config.h
parent8ba81426bbc4030e1fa93e13f294fb3526a0d4de (diff)
downloadchrome-ec-8f8d017fb3e5f8d73bb415295495023353049f79.tar.gz
i2c_master: extend i2c_xfer_no_retry to also support large writestabilize-13605.B-master
This CL extends CONFIG_I2C_XFER_LARGE_READ to also support large (greater than 255 bytes) write. Related config name is also updated to reflect the behavior change, BUG=b:169651794 TEST=flash fw successfully on Zed. BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Icb889013da01f48708cd0227207561b8186bac63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2537412 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/config.h b/include/config.h
index 4891b36617..5d67079d9a 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2313,16 +2313,16 @@
#undef CONFIG_I2C_BUS_MAY_BE_UNPOWERED
/*
- * Conservative I2C reading size per single transaction. For example, register
- * of stm32f0 and stm32l4 are limited to be 8 bits for this field.
+ * Conservative I2C transmission size per single transaction. For example,
+ * register of stm32f0 and stm32l4 are limited to be 8 bits for this field.
*/
-#define CONFIG_I2C_CHIP_MAX_READ_SIZE 255
+#define CONFIG_I2C_CHIP_MAX_TRANSFER_SIZE 255
/*
* Enable i2c_xfer() for receiving request larger than
- * CONFIG_I2C_CHIP_MAX_READ_SIZE.
+ * CONFIG_I2C_CHIP_MAX_TRANSFER_SIZE.
*/
-#undef CONFIG_I2C_XFER_LARGE_READ
+#undef CONFIG_I2C_XFER_LARGE_TRANSFER
/*
* If defined, makes i2c_xfer callback into board-provided functions before the