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:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment