Skip to content

Commit

Permalink
POWER: Add JZ4740 battery driver.
Browse files Browse the repository at this point in the history
Add support for the battery voltage measurement part of the JZ4740 ADC unit.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Anton Vorontsov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1416/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
larsclausen authored and ralfbaechle committed Aug 5, 2010
1 parent 7f983ba commit f6a2138
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,15 @@ config CHARGER_PCF50633
help
Say Y to include support for NXP PCF50633 Main Battery Charger.

config BATTERY_JZ4740
tristate "Ingenic JZ4740 battery"
depends on MACH_JZ4740
depends on MFD_JZ4740_ADC
help
Say Y to enable support for the battery on Ingenic JZ4740 based
boards.

This driver can be build as a module. If so, the module will be
called jz4740-battery.

endif # POWER_SUPPLY
1 change: 1 addition & 0 deletions drivers/power/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ obj-$(CONFIG_BATTERY_DA9030) += da9030_battery.o
obj-$(CONFIG_BATTERY_MAX17040) += max17040_battery.o
obj-$(CONFIG_BATTERY_Z2) += z2_battery.o
obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
Loading

0 comments on commit f6a2138

Please sign in to comment.