power: Add twl4030_madc battery driver.
authorMarek Belisko <marek@goldelico.com>
Thu, 29 Aug 2013 09:41:52 +0000 (11:41 +0200)
committerAnton Vorontsov <anton@enomsg.org>
Sat, 31 Aug 2013 00:34:52 +0000 (17:34 -0700)
commitda0a00ebc239e852a504abfce2ad98957434ae58
tree41d425b54ecc8302100ce355d5eca786f1fc6f30
parentd24fed391dc50f68d27a57364e51888b3a9266b6
power: Add twl4030_madc battery driver.

This driver is used and tested on gta04 phone. It's using twl4030_madc
(similar to rx51 existing driver). Driver also implement charging and
discharging calibration data so user can define ranges and level.

Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Lukas Märdian <lukas@goldelico.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/twl4030_madc_battery.c [new file with mode: 0644]
include/linux/power/twl4030_madc_battery.h [new file with mode: 0644]