mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mfd: cros: add charger port count command definition
A new more command has been added to the ChromeOS embedded controller that allows to get the number of charger port count. Unlike EC_CMD_USB_PD_PORTS, this new command also includes the dedicated port if present. This command will be used to expose the dedicated charger port in the ChromeOS charger driver. Signed-off-by: Fabien Parent <[email protected]> Acked-for-MFD-by: Lee Jones <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
5b394b2ddf
commit
36f47383c7
1 changed files with 10 additions and 0 deletions
|
|
@ -3102,6 +3102,16 @@ struct ec_params_usb_pd_info_request {
|
|||
uint8_t port;
|
||||
} __packed;
|
||||
|
||||
/*
|
||||
* This command will return the number of USB PD charge port + the number
|
||||
* of dedicated port present.
|
||||
* EC_CMD_USB_PD_PORTS does NOT include the dedicated ports
|
||||
*/
|
||||
#define EC_CMD_CHARGE_PORT_COUNT 0x0105
|
||||
struct ec_response_charge_port_count {
|
||||
uint8_t port_count;
|
||||
} __packed;
|
||||
|
||||
/* Read USB-PD Device discovery info */
|
||||
#define EC_CMD_USB_PD_DISCOVERY 0x0113
|
||||
struct ec_params_usb_pd_discovery_entry {
|
||||
|
|
|
|||
Loading…
Reference in a new issue