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

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

power: qpnp-bms: maintain a software coulomb counter



The ADC can introduce a lot of error when the temperature fluctuates.
The BMS's coulomb counter is fed from the IADC, and over time the
accumulated error can create large inaccuracies in the BMS.

Provide a software workaround by maintaining a software coulomb
counter that resets, error compensates, and accumulates the hardware
coulomb counter in the BMS driver.

CRs-Fixed: 477720
CRs-Fixed: 477717
CRs-Fixed: 433840
Change-Id: I303fc919b054e7917d9625c580297a4b305506f7
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent d1479b73
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