summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-06-04 16:19:53 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-15 18:38:49 +0000
commitb21c0226bf6f20706df28e0968856018d3a9b215 (patch)
tree18adab5c19d175ccc6e9cc41e0e3770c1c24067f
parent1f7dd8283ca3a0c11af78fd711829b4a581ed166 (diff)
downloadchrome-ec-b21c0226bf6f20706df28e0968856018d3a9b215.tar.gz
zephyr: Add support for CONFIG_USBC_PPC_SYV682C
Allow this option to be enabled on Zephyr. BUG=b:189855648 BRANCH=none TEST=with other CLs, build asurada for Zephyr Change-Id: I73f49b46ebb9ebe58f06cea51ae570a411ba3010 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941890 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--zephyr/Kconfig.usbc8
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 0be514bf63..2eb7ff7064 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -753,6 +753,14 @@ config PLATFORM_EC_USBC_PPC_SYV682X
features. It provides protection against overcurrent, overvoltage,
thermal shutdown, and undervoltage conditions.
+config PLATFORM_EC_USBC_PPC_SYV682C
+ bool "SYV682C Power Mux for USB PD (subset of SYV682X)"
+ depends on PLATFORM_EC_USBC_PPC_SYV682X
+ help
+ The C version of this chip won't block I2C accessing to the CONTROL4
+ rer (to on/off Vconn) when smart discahrge is enabled. This allows us
+ to re-enable the smart discharge on boards using SYV682C.
+
config PLATFORM_EC_USBC_PPC_SYV682X_NO_CC
bool "SYV682X does not pass through CC"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index c7bb224d5d..ff2e4529b7 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -956,6 +956,11 @@
#define CONFIG_USBC_PPC_SYV682X
#endif
+#undef CONFIG_USBC_PPC_SYV682C
+#ifdef CONFIG_PLATFORM_EC_USBC_PPC_SYV682C
+#define CONFIG_USBC_PPC_SYV682C
+#endif
+
#undef CONFIG_SYV682X_NO_CC
#ifdef CONFIG_PLATFORM_EC_USBC_PPC_SYV682X_NO_CC
#define CONFIG_SYV682X_NO_CC