summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Herrmann <eherrmann@chromium.org>2020-10-06 13:05:10 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-07 04:34:28 +0000
commitd9d6c27f1c765fdfc6b1f5714d0e57b3d895de44 (patch)
treecfe16cf76f232338330d42b9e0b09866cbc02b53
parent34f587bb478d5b27427552a16322de9c47e0838d (diff)
downloadchrome-ec-d9d6c27f1c765fdfc6b1f5714d0e57b3d895de44.tar.gz
SYV682X: Automatically set CONFIG options
Matching the SN5S330, automatically define the config options for the features the SYV682X supports, namely VCONN and CC orientation. It does not support SBU gating as the SN5S330 does. BUG=b:169188754 TEST=Test that VCONN is 5V when plugging in a PD device to Delbin BRANCH=None Signed-off-by: Eric Herrmann <eherrmann@chromium.org> Change-Id: I45572dcd19ff39ad68cc5c3e89cf3ed6503ac135 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2453908 Tested-by: Nathan Kolluru <nkolluru@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index e32f7282c9..02709510ab 100644
--- a/include/config.h
+++ b/include/config.h
@@ -5156,6 +5156,12 @@
#define CONFIG_USBC_PPC_VCONN
#endif
+/* The SYV682X supports VCONN and needs to be informed of CC polarity */
+#if defined(CONFIG_USBC_PPC_SYV682X)
+#define CONFIG_USBC_PPC_POLARITY
+#define CONFIG_USBC_PPC_VCONN
+#endif
+
/*****************************************************************************/
/*
* Define CONFIG_USB_PD_VBUS_MEASURE_CHARGER if the charger on the board