mfd: twl4030: Driver for twl4030 madc module
Subsystems (2)
PATCH v3 2/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 cuurent etc.
Signed-off-by Keerthy <[email protected]>
---
V3:
Added for_each_set_bit for efficient bit checking
and locking the mutex earlier in the threaded irq
handler.
V2:
Added functions to convert raw voltages to current and temperature.
V1:
http://www.mail-archive.com/[email protected]/msg44543.html
drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/twl4030-madc.c | 813 ++++++++++++++++++++++++++++++++++++++ include/linux/i2c/twl4030-madc.h | 142 +++++++ 4 files changed, 966 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
@@ -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 a module. If so it will be + named twl4030-madc + config TWL4030_POWER bool "Support power resources on TWL4030 family chips" depends on TWL4030_CORE && ARM
drivers/mfd/Makefile +1 -0
@@ -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 +813 -0
813 lines not on this page · raw message
include/linux/i2c/twl4030-madc.h new file +142 -0
142 lines not on this page · raw message
Signature · 1 line
1.7.0.4