summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-05-12 15:25:53 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-16 15:46:16 +0000
commitddcdd9bce0ea443c494ec5a57c00ccaacec776bc (patch)
tree2681acf9ed3d679947d104c5db31a6b6a948e23e /include
parent2b84534991fe772f6150c8d53e0a563af4895ada (diff)
downloadchrome-ec-ddcdd9bce0ea443c494ec5a57c00ccaacec776bc.tar.gz
zephyr: tcpm: Add flags property to TCPC yaml
Updated ps8xxx device to include TCPC config flags BUG=b:231291434 BRANCH=NONE TEST=Attach USBC to DUT and make sure device is detected. Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: I9d38ad8ed988bb6d2c57976261dde65cdfe0075b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3645317 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd_tcpm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index 3d99e035f9..641c7afd5c 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -495,6 +495,12 @@ struct tcpm_drv {
int (*reset_bist_type_2)(int port);
};
+#ifdef CONFIG_ZEPHYR
+
+#include "dt-bindings/usb_pd_tcpm.h"
+
+#else /* !CONFIG_ZEPHYR */
+
/*
* Macros for tcpc_config_t flags field.
*
@@ -519,6 +525,8 @@ struct tcpm_drv {
#define TCPC_FLAGS_CONTROL_FRS BIT(7)
#define TCPC_FLAGS_VBUS_MONITOR BIT(8)
+#endif /* !CONFIG_ZEPHYR */
+
struct tcpc_config_t {
enum ec_bus_type bus_type; /* enum ec_bus_type */
union {