diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2020-05-08 18:47:20 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-05-10 02:35:49 +0200 |
commit | 5a63b7ba50fd6b7a897bf9353dbf31d579cfe116 (patch) | |
tree | 31bd0f26002b6cd328f4074937572f1fed2b577d /include/linux/power_supply.h | |
parent | e3420b49949c79d6182dd8128fa7a3958da01b07 (diff) | |
download | linux-stable-5a63b7ba50fd6b7a897bf9353dbf31d579cfe116.tar.gz linux-stable-5a63b7ba50fd6b7a897bf9353dbf31d579cfe116.tar.bz2 linux-stable-5a63b7ba50fd6b7a897bf9353dbf31d579cfe116.zip |
power: supply: add battery parameters
Add parsing of new device-tree battery bindings.
- trickle-charge-current-microamp
- precharge-upper-limit-microvolt
- re-charge-voltage-microvolt
- over-voltage-threshold-microvolt
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r-- | include/linux/power_supply.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 6a34df65d4d1..1f60731ec7fe 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -346,8 +346,12 @@ struct power_supply_battery_info { int charge_full_design_uah; /* microAmp-hours */ int voltage_min_design_uv; /* microVolts */ int voltage_max_design_uv; /* microVolts */ + int tricklecharge_current_ua; /* microAmps */ int precharge_current_ua; /* microAmps */ + int precharge_voltage_max_uv; /* microVolts */ int charge_term_current_ua; /* microAmps */ + int charge_restart_voltage_uv; /* microVolts */ + int overvoltage_limit_uv; /* microVolts */ int constant_charge_current_max_ua; /* microAmps */ int constant_charge_voltage_max_uv; /* microVolts */ int factory_internal_resistance_uohm; /* microOhms */ |