summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index d8ad743caa..1b77e40450 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -220,6 +220,28 @@ struct tcpm_drv {
*/
int (*get_chip_info)(int port, int renew,
struct ec_response_pd_chip_info **info);
+
+#ifdef CONFIG_USBC_PPC
+ /**
+ * Send SinkVBUS or DisableSinkVBUS command
+ *
+ * @param port Type-C port number
+ * @enable true for enable, false for disable
+ *
+ * @return EC_SUCCESS or error
+ */
+ int (*set_snk_ctrl)(int port, int enable);
+
+ /**
+ * Send SourceVBUS or DisableSourceVBUS command
+ *
+ * @param port Type-C port number
+ * @enable true for enable, false for disable
+ *
+ * @return EC_SUCCESS or error
+ */
+ int (*set_src_ctrl)(int port, int enable);
+#endif
};
enum tcpc_alert_polarity {