summaryrefslogtreecommitdiff
path: root/chip
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 /chip
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 'chip')
-rw-r--r--chip/stm32/i2c_ite_flash_support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/i2c_ite_flash_support.c b/chip/stm32/i2c_ite_flash_support.c
index eca3c999af..916a8c364c 100644
--- a/chip/stm32/i2c_ite_flash_support.c
+++ b/chip/stm32/i2c_ite_flash_support.c
@@ -42,11 +42,11 @@
/*
* iteflash requires 256 byte reads for verifying ITE EC firmware. Without this
- * the limit is CONFIG_I2C_CHIP_MAX_READ_SIZE which is 255 for STM32F0 due to an
- * 8 bit field, per src/platform/ec/include/config.h comment.
+ * the limit is CONFIG_I2C_CHIP_MAX_TRANSFER_SIZE which is 255 for STM32F0 due
+ * to an 8 bit field, per src/platform/ec/include/config.h comment.
*/
-#ifndef CONFIG_I2C_XFER_LARGE_READ
-#error Must define CONFIG_I2C_XFER_LARGE_READ
+#ifndef CONFIG_I2C_XFER_LARGE_TRANSFER
+#error Must define CONFIG_I2C_XFER_LARGE_TRANSFER
#endif
#define KHz 1000