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

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

power: qpnp-bms: Clamp CC-based SoC based on voltage



Defaulting to voltage-based SoC is keeping the main coulomb counter based
SoC algorithm from being tested. However, the accuracy issues of the
CC-based SoC algorithm may allow the battery to UVLO or go into early
shutdown.

Clamp the SoC reported based on voltage in order to prevent these
issues. If the voltage is higher than cutoff, then always display
1 or higher SoC. If voltage is lower than cutoff, then always display 0
SoC.

Change-Id: Iccffb7d8a416aa9fdd35c85237e8ac9e3f391354
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 256d6c33
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