Skip to contentSkip to conversation

mfd: twl4030: Driver for twl4030 madc module

PATCH Superseded Keerthy 1 participant 1 message Feb 16, 2011

Subsystems (2)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Keerthy

author
#0 lore raw

PATCH 1/2 mfd: twl4030: Driver for twl4030 madc module

Introducing a driver for MADC on TWL4030 powerIC. MADC stands for monitoring ADC. This driver monitors the real time conversion of analog signals like battery temperature, battery type, battery level etc.

---
The previous discussion concluded in keeping the generic ADC functionality and the hwmon separate. The discussion can be found here:

http://www.mail-archive.com/[email protected]/msg41805.html

 drivers/mfd/Kconfig              |   10 +
 drivers/mfd/Makefile             |    1 +
 drivers/mfd/twl4030-madc.c       |  721 ++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/twl4030-madc.h |  132 +++++++
 4 files changed, 864 insertions(+), 0 deletions(-)
 create mode 100644 drivers/mfd/twl4030-madc.c
 create mode 100644 include/linux/i2c/twl4030-madc.h
drivers/mfd/Kconfig +10 -0
index fd01836..7d36882 100644
@@ -167,6 +167,16 @@ config TWL4030_CORE
 	  high speed USB OTG transceiver, an audio codec (on most
 	  versions) and many other features.
 
+config TWL4030_MADC
+	tristate "Texas Instruments TWL4030 MADC"
+	depends on TWL4030_CORE
+	help
+	This driver provides support for triton TWL4030-MADC. The
+	driver supports both RT and SW conversion methods.
+
+	This driver can be built as part of kernel or can be built
+	as a module.
+
 config TWL4030_POWER
 	bool "Support power resources on TWL4030 family chips"
 	depends on TWL4030_CORE && ARM
drivers/mfd/Makefile +1 -0
index a54e2c7..2922cc2 100644
@@ -37,6 +37,7 @@ obj-$(CONFIG_TPS6507X)		+= tps6507x.o
 obj-$(CONFIG_MENELAUS)		+= menelaus.o
 
 obj-$(CONFIG_TWL4030_CORE)	+= twl-core.o twl4030-irq.o twl6030-irq.o
+obj-$(CONFIG_TWL4030_MADC)      += twl4030-madc.o
 obj-$(CONFIG_TWL4030_POWER)    += twl4030-power.o
 obj-$(CONFIG_TWL4030_CODEC)	+= twl4030-codec.o
 obj-$(CONFIG_TWL6030_PWM)	+= twl6030-pwm.o
drivers/mfd/twl4030-madc.c new file +721 -0

721 lines not on this page · raw message

include/linux/i2c/twl4030-madc.h new file +132 -0

132 lines not on this page · raw message

Signature · 7 lines
1.7.0.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors