charger: Adds CHARGER_CONSTANT_CHARGE_VOLTAGE property

Adds a new runtime property called CHARGER_PROP_CONSTANT_CHARGE_VOLTAGE
to the charger API. This can be used to get/set the charger
constant voltage regulation target.

Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
This commit is contained in:
Ricardo Rivera-Matos 2023-09-08 11:49:34 -05:00 committed by Carles Cufí
commit 59bb1c523c

View file

@ -49,6 +49,8 @@ enum charger_property {
CHARGER_PROP_PRECHARGE_CURRENT_UA,
/** Configuration of charge termination target in µA */
CHARGER_PROP_CHARGE_TERM_CURRENT_UA,
/** Configuration of charge voltage regulation target in µV */
CHARGER_PROP_CONSTANT_CHARGE_VOLTAGE_UV,
/** Reserved to demark end of common charger properties */
CHARGER_PROP_COMMON_COUNT,
/**
@ -191,6 +193,8 @@ union charger_propval {
uint32_t precharge_current_ua;
/** CHARGER_PROP_CHARGE_TERM_CURRENT_UA */
uint32_t charge_term_current_ua;
/** CHARGER_PROP_CONSTANT_CHARGE_VOLTAGE_UV */
uint32_t const_charge_voltage_uv;
};
/**