diff options
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r-- | include/usb_pd_tcpm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 7a7bd0b3a1..cfd7692852 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -435,4 +435,13 @@ int board_tcpc_post_init(int port) __attribute__((weak)); */ void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled); +/** + * Get the VBUS voltage from TCPC + * + * @param port Type-C port number + * + * @return VBUS voltage in mV. + */ +int tcpc_get_vbus_voltage(int port); + #endif /* __CROS_EC_USB_PD_TCPM_H */ |