summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2021-07-22 12:24:48 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-23 02:58:51 +0000
commitcd5e60769ef1ce6242fc15f1e750ddcc54f95931 (patch)
tree07b450409e70de4e62b6d462f92e028843b6598e /zephyr/Kconfig
parenta6c0ab97d9074a4b856e1f3162bef48dc0e51f57 (diff)
downloadchrome-ec-cd5e60769ef1ce6242fc15f1e750ddcc54f95931.tar.gz
zephyr: add support for CONFIG_SMBUS_PEC
Add Kconfig option to enable packet error checking of SMBus. BUG=b:189855648 BRANCH=none TEST=zmake testall Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: Iec9f318aebed97f28e199054aae558bb8a500d52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045034 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r--zephyr/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 6351eef2bb..2440fd3773 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -395,6 +395,18 @@ config PLATFORM_EC_I2C
should make shimming other platform/ec modules which rely on i2c
communication "just work" without requiring any further code changes.
+config PLATFORM_EC_SMBUS_PEC
+ bool "Packet error checking support for SMBus"
+ help
+ If enabled, adds error checking support for i2c_readN, i2c_writeN,
+ i2c_read_string and i2c_write_block. Where
+ - write operation appends an error checking byte at end of transfer, and
+ - read operatoin verifies the correctness of error checking byte from the
+ slave.
+ Set I2C_FLAG on addr_flags parameter to use this feature.
+
+ This option also enables error checking function on smart batteries.
+
config PLATFORM_EC_LID_SWITCH
bool "Lid switch"
help