Skip to content

Commit b45cdce

Browse files
akemnadesre
authored andcommitted
power: supply: initial support for TWL6030/32
Add a driver for the charger in the TWL6030/32. For now it does not report much in sysfs but parameters are set up for USB, charging is enabled with the specified parameters. It stops charging when full and also restarts charging. This prevents ending up in a system setup where you run out of battery although a charger is plugged in after precharge completed. Battery voltage behavior was checked via the GPADC. Signed-off-by: Andreas Kemnade <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 421aadd commit b45cdce

File tree

3 files changed

+592
-0
lines changed

3 files changed

+592
-0
lines changed

drivers/power/supply/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,16 @@ config CHARGER_TWL4030
493493
help
494494
Say Y here to enable support for TWL4030 Battery Charge Interface.
495495

496+
config CHARGER_TWL6030
497+
tristate "OMAP TWL6030 BCI charger driver"
498+
depends on IIO && TWL4030_CORE
499+
help
500+
Say Y here to enable support for TWL6030/6032 Battery Charge
501+
Interface.
502+
503+
This driver can be build as a module. If so, the module will be
504+
called twl6030_charger.
505+
496506
config CHARGER_LP8727
497507
tristate "TI/National Semiconductor LP8727 charger driver"
498508
depends on I2C

drivers/power/supply/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o
6969
obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
7070
obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
7171
obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
72+
obj-$(CONFIG_CHARGER_TWL6030) += twl6030_charger.o
7273
obj-$(CONFIG_CHARGER_LP8727) += lp8727_charger.o
7374
obj-$(CONFIG_CHARGER_LP8788) += lp8788-charger.o
7475
obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o

0 commit comments

Comments
 (0)