Message ID | 20180810131349.3883-2-fparent@baylibre.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | power: supply: cros: add support for dedicated port and expose connected ports | expand |
Hi, Missatge de Fabien Parent <fparent@baylibre.com> del dia dv., 10 d’ag. 2018 a les 15:17: > > 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 <fparent@baylibre.com> Seems you missed my Reviewed-by tag, not a problem :), in any case, for if it helps to land adding again Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> > Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> > --- > V1 -> V2: > * No change > --- > include/linux/mfd/cros_ec_commands.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h > index 0d926492ac3a..e3187f8bdb7e 100644 > --- a/include/linux/mfd/cros_ec_commands.h > +++ b/include/linux/mfd/cros_ec_commands.h > @@ -3005,6 +3005,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 { > -- > 2.18.0 >
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 0d926492ac3a..e3187f8bdb7e 100644 --- a/include/linux/mfd/cros_ec_commands.h +++ b/include/linux/mfd/cros_ec_commands.h @@ -3005,6 +3005,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 {
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 <fparent@baylibre.com> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> --- V1 -> V2: * No change --- include/linux/mfd/cros_ec_commands.h | 10 ++++++++++ 1 file changed, 10 insertions(+)