summaryrefslogtreecommitdiff
path: root/drivers/power/supply/qcom_smbb.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2017-05-03 17:15:30 -0700
committerSebastian Reichel <sre@kernel.org>2017-05-04 17:51:44 +0200
commit3ae5f06681fc0e9ce6a0ac4f909aa7695e1f3228 (patch)
tree46e84f95bd42348a8c62bb79f7dbc7b771736077 /drivers/power/supply/qcom_smbb.c
parent4f700a5285dc8f9dde4ad02542bc42fe9f97cfcf (diff)
power: supply: cpcap-charger: Fix charge voltage configuration
We have the charge voltage wrong, it should be 4.35V instead of 4.2V. This will cause the battery to never get fully charged. I noticed this when looking at the Andoid kernel battery and charger status for a fully charged battery: POWER_SUPPLY_VOLTAGE_NOW=4351000 Also the battery on droid 4 says "4.35, 1735/1785mAh (min/typ), 6.6/6.8 Wh (min/typ)". Presumably the 4.35 on the battery is the charge voltage. And finally, on Android the CPCAP CRM register is set to 0x03b5 where the b is the charge voltage. Let's fix the charge voltage define and update the charge configuration to use the 4.35V setting. Fixes: 0c9888e3c192 ("power: supply: cpcap-charger: Add minimal CPCAP PMIC battery charger") Cc: Marcel Partap <mpartap@gmx.net> Cc: Michael Scott <michael.scott@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/supply/qcom_smbb.c')
0 files changed, 0 insertions, 0 deletions