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:
parent
c7f22eee9f
commit
59bb1c523c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue