commit | e118c69106fac9009d46f9a7d19193c55977eaaa | [log] [tgz] |
---|---|---|
author | Xiaozhe Shi <xiaozhes@codeaurora.org> | Mon Sep 24 15:17:43 2012 -0700 |
committer | Xiaozhe Shi <xiaozhes@codeaurora.org> | Thu Nov 15 09:50:18 2012 -0800 |
tree | 9f333c481448aa0825d57c4607cae256e43b8e85 | |
parent | f9d22cb981abf4207890e80b298573fc1f0c669c [diff] |
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: Xiaozhe Shi <xiaozhes@codeaurora.org>