commit | af6f9e2babbc38cc56b2d873c2f9935a60b95fe4 | [log] [tgz] |
---|---|---|
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Mon Oct 03 19:19:02 2011 -0700 |
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | Thu Oct 13 17:05:30 2011 -0700 |
tree | 52ec310192e66f6d9527e78dbe42a0183e7da0b5 | |
parent | e60096da0f2e37010af610472b9df688a08f9c55 [diff] |
power: pm8921-bms: detect power supply When the state of charge (SOC) falls below 10% make sure that the battery voltage too has fallen. If the battery voltage stays high it means that the device is powered using a fake battery/power supply. Report a default soc to the userspace to avoid shutdowns due to a low SOC. CRs-Fixed: 309411 Change-Id: Ibd5e76cf7ed926722290840140fde4c592700eba Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>