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

Commit 08a898ac authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: add support for vfloat adjustments



The PMI8994 charger hardware has an analog control loop for regulating
float voltage during constant voltage charging. However, this control
loop has a 1% accuracy which is not acceptable for the fuel gauge
operation.

Add support for a software algorithm to automatically retrim the charger
float voltage regulation based on readings from the fuel gauge.

Note that the algorithm relies on periodic changes to the battery power
supply. The delta soc interrupt in Fuel Gauge causes a status change to
battery power supply and it's period is deemed good enough for invoking the
algorithm.

Change-Id: I85e9b1b6b337b29223b210e7f33623a287940df3
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 684ad5eb
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