summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-09-13 16:38:40 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-10-12 13:43:09 -0700
commita87340d406f53953a15ee6fa1366d86dd44e00f6 (patch)
tree023f75367243dbb673ac5db9109f28c9375c0e73 /lib/mpi/mpi-inline.h
parentd475978a5f9b0bb2301c18695c02ba0d4b9f328e (diff)
power: qpnp-fg-gen3: Improve the accuracy of charge_counter
Currently, charge_counter is based off CC_SOC_SW which is based off coulomb counter. However, there could be some accumulation of error due to inaccuracy in ADC over time. This can potentially affect the accuracy of charge_counter. To overcome this, prime CC_SOC_SW during discharging based off battery SOC and to a full value during charge termination. While at it, expose the charge_counter_shadow property based off battery SOC for comparison. CRs-Fixed: 2109421 Change-Id: I50de44afbdbd747db95946416a09062df205fd6c Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions