mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
charge_manager: modify usbpdpower HC return args
Modify usbpdpower HC return args by adding a new current limit field, and adding a new charger type (UNKNOWN). Note this doesn't change the size of the return struct. BUG=chrome-os-partner:38548 BRANCH=samus TEST=make -j buildall Change-Id: I51bb062a7e4fcd9ae6aea15204adb83b19882ac9 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264641 Reviewed-by: Sameer Nanda <snanda@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
3e1bf760b3
commit
bd1f20911f
@@ -2914,6 +2914,7 @@ enum usb_chg_type {
|
||||
USB_CHG_TYPE_BC12_SDP,
|
||||
USB_CHG_TYPE_OTHER,
|
||||
USB_CHG_TYPE_VBUS,
|
||||
USB_CHG_TYPE_UNKNOWN,
|
||||
};
|
||||
enum usb_power_roles {
|
||||
USB_PD_PORT_POWER_DISCONNECTED,
|
||||
@@ -2926,10 +2927,7 @@ struct usb_chg_measures {
|
||||
uint16_t voltage_max;
|
||||
uint16_t voltage_now;
|
||||
uint16_t current_max;
|
||||
/*
|
||||
* this structure is used below in struct ec_response_usb_pd_power_info,
|
||||
* and currently expects an odd number of uint16_t for alignment.
|
||||
*/
|
||||
uint16_t current_lim;
|
||||
} __packed;
|
||||
|
||||
struct ec_response_usb_pd_power_info {
|
||||
@@ -2938,7 +2936,6 @@ struct ec_response_usb_pd_power_info {
|
||||
uint8_t dualrole;
|
||||
uint8_t reserved1;
|
||||
struct usb_chg_measures meas;
|
||||
uint16_t reserved2;
|
||||
uint32_t max_power;
|
||||
} __packed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user