Skip to content

Commit b14a9cc

Browse files
myungjooenomsg
authored andcommitted
power_supply: Add driver for MAX8903 charger
MAX8903 is an integrated battery charger and selector with two power inputs (USB and AC adapter). This driver enables the charger, handles interrupts, and provides power-supply-class information to userland. Tested on Exynos4 NURI / S5PC210 SLP7 boards. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
1 parent f0e615c commit b14a9cc

4 files changed

Lines changed: 457 additions & 0 deletions

File tree

‎drivers/power/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ config CHARGER_ISP1704
203203
Say Y to enable support for USB Charger Detection with
204204
ISP1707/ISP1704 USB transceivers.
205205

206+
config CHARGER_MAX8903
207+
tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
208+
help
209+
Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
210+
The driver supports controlling charger-enable and current-limit
211+
pins based on the status of charger connections with interrupt
212+
handlers.
213+
206214
config CHARGER_TWL4030
207215
tristate "OMAP TWL4030 BCI charger driver"
208216
depends on TWL4030_CORE

‎drivers/power/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ obj-$(CONFIG_CHARGER_PCF50633) += pcf50633-charger.o
3232
obj-$(CONFIG_BATTERY_JZ4740) += jz4740-battery.o
3333
obj-$(CONFIG_BATTERY_INTEL_MID) += intel_mid_battery.o
3434
obj-$(CONFIG_CHARGER_ISP1704) += isp1704_charger.o
35+
obj-$(CONFIG_CHARGER_MAX8903) += max8903_charger.o
3536
obj-$(CONFIG_CHARGER_TWL4030) += twl4030_charger.o
3637
obj-$(CONFIG_CHARGER_GPIO) += gpio-charger.o

0 commit comments

Comments
 (0)