Skip to contentSkip to conversation

ARM: LPC32xx: ADC driver

PATCH Superseded Roland Stigge 1 participant 1 message Feb 14, 2012

Subsystems (4)

v4 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ARM: LPC32xx: ADC driver

This patch adds a 3-channel ADC driver for the LPC32xx ARM SoC

---
 drivers/staging/iio/adc/Kconfig       |    9 +
 drivers/staging/iio/adc/Makefile      |    1 
 drivers/staging/iio/adc/lpc32xx_adc.c |  237 ++++++++++++++++++++++++++++++++++
 3 files changed, 247 insertions(+)
drivers/staging/iio/adc/Kconfig +9 -0
@@ -193,4 +193,13 @@ config MAX1363_RING_BUFFER
 	  Say yes here to include ring buffer support in the MAX1363
 	  ADC driver.
 
+config LPC32XX_ADC
+	tristate "NXP LPC32XX ADC"
+	depends on ARCH_LPC32XX && !TOUCHSCREEN_LPC32XX
+	help
+	  Say yes here to build support for the integrated ADC inside the
+	  LPC32XX SoC. Note that this feature uses the same hardware as the
+	  touchscreen driver, so you can only select one of the two drivers
+	  (lpc32xx_adc or lpc32xx_ts). Provides direct access via sysfs.
+
 endmenu
drivers/staging/iio/adc/Makefile +1 -0
@@ -37,3 +37,4 @@ obj-$(CONFIG_AD7192) += ad7192.o
 obj-$(CONFIG_ADT7310) += adt7310.o
 obj-$(CONFIG_ADT7410) += adt7410.o
 obj-$(CONFIG_AD7280) += ad7280a.o
+obj-$(CONFIG_LPC32XX_ADC) += lpc32xx_adc.o
drivers/staging/iio/adc/lpc32xx_adc.c new file +237 -0

237 lines not on this page · raw message