Skip to contentSkip to conversation

DA9058 POWER driver

PATCH Superseded Anthony Olech 1 participant 1 message Aug 15, 2012

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 4/8 DA9058 POWER driver

This is the POWER component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE and ADC component drivers of the DA9058 MFD.

---
 drivers/power/Kconfig        |   10 +
 drivers/power/Makefile       |    1 +
 drivers/power/da9058_power.c |  397 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 408 insertions(+), 0 deletions(-)
 create mode 100644 drivers/power/da9058_power.c
drivers/power/Kconfig +10 -0
index e3a3b49..e0b4d34 100644
@@ -8,6 +8,16 @@ menuconfig POWER_SUPPLY
 
 if POWER_SUPPLY
 
+config BATTERY_DA9058
+	tristate "DA9058 battery charger support"
+	depends on MFD_DA9058
+	help
+	  Say Y here to enable support for the battery charger in the Dialog
+	  DA9058 PMIC.
+
+	  To compile this driver as a module, choose M here: the module
+	  will be called da9058_power.
+
 config POWER_SUPPLY_DEBUG
 	bool "Power supply debug"
 	help
drivers/power/Makefile +1 -0
index b6b2434..8a4a049 100644
@@ -14,6 +14,7 @@ obj-$(CONFIG_WM831X_POWER)	+= wm831x_power.o
 obj-$(CONFIG_WM8350_POWER)	+= wm8350_power.o
 obj-$(CONFIG_TEST_POWER)	+= test_power.o
 
+obj-$(CONFIG_BATTERY_DA9058)	+= da9058_power.o
 obj-$(CONFIG_BATTERY_DS2760)	+= ds2760_battery.o
 obj-$(CONFIG_BATTERY_DS2780)	+= ds2780_battery.o
 obj-$(CONFIG_BATTERY_DS2781)	+= ds2781_battery.o
drivers/power/da9058_power.c new file +397 -0

397 lines not on this page · raw message

Signature · 1 line
end-of-patch for NEW DRIVER V3