power: qpnp-fg-gen4: Adjust recharge SOC dynamically
On PM8150B, recharge SOC threshold is configured in the charger
hardware. Since FG driver needs to support maintenance charging
and recharge SOC needs to be modified dynamically based on the
early termination, it is better to have it configured at one
place, in FG driver. It is expected that recharge SOC threshold
is exposed by the charger driver through battery power supply.
Recharge SOC threshold is adjusted based on the SOC at which
charge termination happens and it is set back to the original
threshold when one of the following happens.
- Battery is out of FULL state meaning recharging had begun
- Battery is out of JEITA zone
- Charger is removed
Change-Id: Ifa08c4bdbd161b20a385c1850f7d32c932b1ffb8
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment