diff options
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r-- | include/usb_mux.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h index cb50497ef7..4391eed1e8 100644 --- a/include/usb_mux.h +++ b/include/usb_mux.h @@ -58,6 +58,14 @@ struct usb_mux_driver { int (*get)(const struct usb_mux *me, mux_state_t *mux_state); /** + * Return if retimer supports firmware update + * + * @return true - supported + * false - not supported + */ + bool (*is_retimer_fw_update_capable)(void); + + /** * Optional method that is called after the mux fully disconnects. * * Note: this method does not need to be defined for TCPC/MUX combos @@ -242,6 +250,17 @@ void usb_mux_flip(int port); void usb_mux_hpd_update(int port, int hpd_lvl, int hpd_irq); /** + * Port information about retimer firmware update support. + * + * @return which ports support retimer firmware update + * Bits[7:0]: represent PD ports 0-7; + * each bit + * = 1, this port supports retimer firmware update; + * = 0, not support. + */ +int usb_mux_retimer_fw_update_port_info(void); + +/** * Get the disconnect latch flag so that the Kernel Mux driver doesn't * miss the unnoticed disconnection status. * |