]> git.baikalelectronics.ru Git - kernel.git/commit
power_supply: Add new lp8788 charger driver
authorKim, Milo <Milo.Kim@ti.com>
Wed, 5 Sep 2012 10:43:21 +0000 (10:43 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 20 Sep 2012 22:11:54 +0000 (15:11 -0700)
commit58557f6f2c1341413ab6d648c836733ea45a6084
tree987d5c86d80eb69fc0aa50880aa4ceff53ebde12
parent22f9f5decd15e9fce3cf6febbc2b2bf8ac00b9d6
power_supply: Add new lp8788 charger driver

TI LP8788 PMU supports regulators, battery charger, RTC, ADC, backlight
driver and current sinks.

This patch supports the charger operations including the charger
interrupt handling.

The LP8788 charger driver provides configurable platform data.  The
charger platform data includes ADC input ID, maximum battery voltage,
charging parameters and etc.

The ADC input is used for getting the battery voltage and temperature.
Charging parameters are used for updating the charger operations such
like setting charging current and setting End-of-charge conditions.

When the charging interrupt occurs, power supply uevents are generated
in order to update the user-space information.  For platform specific
charger action, the charger_event() function can be used in the
platform side.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/lp8788-charger.c [new file with mode: 0644]