mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
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>
This commit is contained in:
committed by
Anton Vorontsov
parent
f4f95adf7c
commit
98a2766493
@@ -254,6 +254,13 @@ config CHARGER_LP8727
|
||||
help
|
||||
Say Y here to enable support for LP8727 Charger Driver.
|
||||
|
||||
config CHARGER_LP8788
|
||||
tristate "TI LP8788 charger driver"
|
||||
depends on MFD_LP8788
|
||||
depends on LP8788_ADC
|
||||
help
|
||||
Say Y to enable support for the LP8788 linear charger.
|
||||
|
||||
config CHARGER_GPIO
|
||||
tristate "GPIO charger"
|
||||
depends on GPIOLIB
|
||||
|
||||
@@ -39,6 +39,7 @@ obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
|
||||
obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
|
||||
obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
|
||||
obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
|
||||
obj-$(CONFIG_CHARGER_LP8788) += lp8788-charger.o
|
||||
obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o
|
||||
obj-$(CONFIG_CHARGER_MANAGER) += charger-manager.o
|
||||
obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
|
||||
|
||||
795
drivers/power/lp8788-charger.c
Normal file
795
drivers/power/lp8788-charger.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user