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

Skip to content
Commit 4d716fff authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

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: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent e148e353
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