diff options
Diffstat (limited to 'include/usb_charge.h')
-rw-r--r-- | include/usb_charge.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_charge.h b/include/usb_charge.h index 7a102dac4c..8217b0f52c 100644 --- a/include/usb_charge.h +++ b/include/usb_charge.h @@ -183,4 +183,14 @@ static inline int usb_charger_ramp_max(int port, int supplier, int sup_curr) */ void usb_charger_reset_charge(int port); +/** + * Check if a particular port is sourcing VBUS + * + * This function is typically defined in the board file + * + * @param port port number + * @return 0 if not source, non-zero if sourcing + */ +int board_is_sourcing_vbus(int port); + #endif /* __CROS_EC_USB_CHARGE_H */ |