The two following patches import the out-of-tree imx_adc driver from Freescale in barebox. The original driver was interfaced with userspace through IOCTLs, this simple port exposes a barebox command "imx_adc" which returns converted values in mV. As such it's more a command since it doesn't register itself anywhere and is accessed that way only. There doesn't seem to be any ADC driver in barebox right now, Is there any interest in cleaning this up for inclusion ? Florian Vallee (2): drivers: imx_adc: import and adapt imx_adc from linux drivers: imx_adc: repurpose driver as pure ADC arch/arm/mach-imx/include/mach/imx25-regs.h | 1 + drivers/misc/Kconfig | 4 + drivers/misc/Makefile | 1 + drivers/misc/imx_adc.c | 248 ++++++++++++++++++++++++++++ drivers/misc/imx_adc.h | 112 +++++++++++++ drivers/misc/imx_adc_reg.h | 247 +++++++++++++++++++++++++++ 6 files changed, 613 insertions(+) create mode 100644 drivers/misc/imx_adc.c create mode 100644 drivers/misc/imx_adc.h create mode 100644 drivers/misc/imx_adc_reg.h -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox