Skip to content

Commit f6a2138

Browse files
larsclausenralfbaechle
authored andcommitted
POWER: Add JZ4740 battery driver.
Add support for the battery voltage measurement part of the JZ4740 ADC unit. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1416/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 7f983ba commit f6a2138

4 files changed

Lines changed: 481 additions & 0 deletions

File tree

‎drivers/power/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,15 @@ config CHARGER_PCF50633
142142
help
143143
Say Y to include support for NXP PCF50633 Main Battery Charger.
144144

145+
config BATTERY_JZ4740
146+
tristate "Ingenic JZ4740 battery"
147+
depends on MACH_JZ4740
148+
depends on MFD_JZ4740_ADC
149+
help
150+
Say Y to enable support for the battery on Ingenic JZ4740 based
151+
boards.
152+
153+
This driver can be build as a module. If so, the module will be
154+
called jz4740-battery.
155+
145156
endif # POWER_SUPPLY

‎drivers/power/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
3434
obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
3535
obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
3636
obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
37+
obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o

0 commit comments

Comments
 (0)