diff options
Diffstat (limited to 'include/usb_common.h')
-rw-r--r-- | include/usb_common.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/usb_common.h b/include/usb_common.h index 5078ff071e..be7ead8055 100644 --- a/include/usb_common.h +++ b/include/usb_common.h @@ -159,4 +159,22 @@ void notify_sysjump_ready(volatile const task_id_t * const * @param port USB-C port number */ void set_usb_mux_with_current_data_role(int port); + +/** + * Get the PD flags stored in BB Ram + * + * @param port USB-C port number + * @param flags pointer where flags are written to + * @return EC_SUCCESS on success + */ +int pd_get_saved_port_flags(int port, uint8_t *flags); + +/** + * Update the flag in BB Ram with the give value + * + * @param port USB-C port number + * @param flag BB Ram flag to update + * @param do_set value written to the BB Ram flag + */ +void pd_update_saved_port_flags(int port, uint8_t flag, uint8_t do_set); #endif /* __CROS_EC_USB_COMMON_H */ |