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

Skip to content
Commit 7305e3ae authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: scale SoC more smoothly during CV charging



Currently the BMS switches from using a coulomb counter based SoC
into using a battery current based SoC when the system goes into
constant voltage charging. However, if the BMS does not switch
exactly at the point where the system hits constant voltage (CV)
charging, the switching can create inaccuracies in the SoC.

Fix this by weighting the battery current based SoC based on how
close the battery is to being done charging. This way there can be
smooth SoC during charging, and an accurate 100% when charging ends.

Change-Id: I0b9a963ca3541af04b408c3fe9ad35602711277b
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 600bdeb5
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