Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d82a81e authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: add support for restoring battery information



There is a requirement that if the same battery is removed and
inserted again, fuel gauge software should be able to restore the
battery state of charge (SOC) again. The implementation requires
that the userspace writes the stored battery information via
power supply properties battery_info_id and battery_info. Add
support for it.

Since the restoration should take place based on the specified
battery voltage or SOC limits, add the needed module parameters
(batt_valid_ocv, batt_range_pct) to support this requirement.

This feature itself is controlled by a device tree property
"qcom,fg-restore-batt-info".

CRs-Fixed: 1035402
Change-Id: Idf27dbb6a69f01f69e12c4e34cb4f4eb9c3f01e6
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 53160878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment