commit | 1834c6d42c7391814c1771dd3175be6727b98e23 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Fri Oct 28 20:00:02 2011 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Fri Oct 28 21:44:50 2011 -0700 |
tree | 09910a1b40751fd684d84fae8c51239c76699bb9 | |
parent | c23264ca3dcaa6884e1cede742b3226a95a1fcdc [diff] |
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: Abhijeet Dharmapurikar <adharmap@codeaurora.org>