summaryrefslogtreecommitdiff
path: root/zephyr/shim/include
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/shim/include
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/shim/include')
-rw-r--r--zephyr/shim/include/config_chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 2da4af174b..a7346e6c8a 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -425,6 +425,11 @@
#define CONFIG_I2C_CONTROLLER
#endif
+#undef CONFIG_SMBUS_PEC
+#ifdef CONFIG_PLATFORM_EC_SMBUS_PEC
+#define CONFIG_SMBUS_PEC
+#endif
+
#undef CONFIG_KEYBOARD_PROTOCOL_8042
#ifdef CONFIG_PLATFORM_EC_KEYBOARD_PROTOCOL_8042
#define CONFIG_KEYBOARD_PROTOCOL_8042