Commit 1834c6d4 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: pm8921-bms: enable ccadc calibration



The ccadc needs to be calibrated every few minutes for accurate
battery charge estimation. The output of the calibration procedure
is gain and offset. The gain is used by the software while
the offset is programmed in a trim register. These trim values are
offset by bms every time it does an auto vsense read.

Change-Id: I20f6a7173321aa68967803d67c9a4813bcd75fae
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent c23264ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment