summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-08-13 09:39:23 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-13 22:02:49 +0000
commitdc7e87f2503eab5ef0f5cf4d66286c52ec647751 (patch)
treeeddeb03234eb678c1e9f1ceded3dc41ff98898b8
parent321a63be42c85902899ecd4152a3ad1073fe8216 (diff)
downloadchrome-ec-dc7e87f2503eab5ef0f5cf4d66286c52ec647751.tar.gz
ANX3429: Disallow PD 3.0 operation
The ANX3429 was developed before the PD 3.0 specification and is not PD 3.0 compliant. Disallow building this driver with PD 3.0 enabled. BRANCH=None BUG=b:159253723 TEST=make -j buidall passes; configure eve for PD 3.0 and see it fails Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I1d46d313f2914e98180e9a599b8ccdeb430afdef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2354629 Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Jett Rink <jettrink@chromium.org>
-rw-r--r--driver/tcpm/anx74xx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver/tcpm/anx74xx.c b/driver/tcpm/anx74xx.c
index 26fc0da93c..a775abd172 100644
--- a/driver/tcpm/anx74xx.c
+++ b/driver/tcpm/anx74xx.c
@@ -24,6 +24,11 @@
#error "Please upgrade your board configuration"
#endif
+#if defined(CONFIG_USB_PD_REV30)
+#error "ANX74xx chips were developed before PD 3.0 and aren't PD 3.0 compliant"
+#error "Please undefine PD 3.0. See b/159253723 for details"
+#endif
+
#define CPRINTF(format, args...) cprintf(CC_USBPD, format, ## args)
#define CPRINTS(format, args...) cprints(CC_USBPD, format, ## args)