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

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

power: qpnp-bms: add core bms algorithm



Add most of the core bms algorithm from the pm8921 driver into
qpnp-bms. report_state_of_charge should now report a rudimentary unadjusted
state of charge.

Unimplemented things in the current patch includes adc calibration,
adjusting SoC for the high and low ends of the battery curve, adjusting SoC
for charging and discharging.

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