Skip to content

Commit 91f4deb

Browse files
larsclausenSamuel Ortiz
authored andcommitted
mfd: Add JZ4740 ADC driver
This patch adds a MFD driver for the JZ4740 ADC unit. The driver is used to demultiplex IRQs and synchronize access to shared registers between the battery, hwmon and (future) touchscreen driver. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent b12c35e commit 91f4deb

4 files changed

Lines changed: 425 additions & 0 deletions

File tree

‎drivers/mfd/Kconfig‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,14 @@ config MFD_JANZ_CMODIO
514514
host many different types of MODULbus daughterboards, including
515515
CAN and GPIO controllers.
516516

517+
config MFD_JZ4740_ADC
518+
tristate "Support for the JZ4740 SoC ADC core"
519+
select MFD_CORE
520+
depends on MACH_JZ4740
521+
help
522+
Say yes here if you want support for the ADC unit in the JZ4740 SoC.
523+
This driver is necessary for jz4740-battery and jz4740-hwmon driver.
524+
517525
endif # MFD_SUPPORT
518526

519527
menu "Multimedia Capabilities Port drivers"

‎drivers/mfd/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,4 @@ obj-$(CONFIG_PMIC_ADP5520) += adp5520.o
7272
obj-$(CONFIG_LPC_SCH) += lpc_sch.o
7373
obj-$(CONFIG_MFD_RDC321X) += rdc321x-southbridge.o
7474
obj-$(CONFIG_MFD_JANZ_CMODIO) += janz-cmodio.o
75+
obj-$(CONFIG_MFD_JZ4740_ADC) += jz4740-adc.o

0 commit comments

Comments
 (0)