power_supply: Enable battery-charger for 88pm860x
authorJett.Zhou <jtzhou@marvell.com>
Fri, 27 Jul 2012 08:27:16 +0000 (16:27 +0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 20 Sep 2012 22:32:55 +0000 (15:32 -0700)
commita830d28b48bf92944e57058e87d17cee5a7cd2a1
tree304249dfc3d1100114a88e3c01509158a52eb86e
parent98a2766493589c18c327ae3dad5243b53fcb5f70
power_supply: Enable battery-charger for 88pm860x

There are charger and battery measurement feature for 88pm860x PMIC.

For charger, it can support pre-charge with small current when battery is
nearly exausted and then changed into fast-charge with CC&CV mode.

For battery monitor, it can support battery measurement such as
vbat,vsys,vchg and ibat etc,it can aslo accumulating the Coulomb value
charged or discharged from battery based on Conlomb Counter, we use it
to estimate battery capacity.

Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/mfd/88pm860x-core.c
drivers/power/88pm860x_battery.c [new file with mode: 0644]
drivers/power/88pm860x_charger.c [new file with mode: 0644]
drivers/power/Kconfig
drivers/power/Makefile
include/linux/mfd/88pm860x.h