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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index fe5d6232e6..3f231fb3f7 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -67,6 +67,16 @@ struct tcpm_drv {
int (*init)(int port);
/**
+ * Release the TCPM hardware and disconnect the driver.
+ * Only .init() can be called after .release().
+ *
+ * @param port Type-C port number
+ *
+ * @return EC_SUCCESS or error
+ */
+ int (*release)(int port);
+
+ /**
* Read the CC line status.
*
* @param port Type-C port number