summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 82387f1b1c..7aa17bf82e 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -1191,9 +1191,18 @@ enum typec_mux {
enum usb_switch {
USB_SWITCH_CONNECT,
USB_SWITCH_DISCONNECT,
+ USB_SWITCH_RESTORE,
};
/**
+ * Configure USB data switches on type-C port.
+ *
+ * @param port port number.
+ * @param setting new switch setting to configure.
+ */
+void board_set_usb_switches(int port, enum usb_switch setting);
+
+/**
* Configure superspeed muxes on type-C port.
*
* @param port port number.
@@ -1227,6 +1236,13 @@ int board_get_usb_mux(int port, const char **dp_str, const char **usb_str);
void board_flip_usb_mux(int port);
/**
+ * Request that a host event be sent to notify the AP of a PD power event.
+ *
+ * @param mask host event mask.
+ */
+void pd_send_host_event(int mask);
+
+/**
* Determine if in alternate mode or not.
*
* @param port port number.