[RFC PATCH v1] EP93XX: Add ADC support

H Hartley Sweeten hartleys at visionengravers.com
Mon Oct 12 18:25:27 EDT 2009


On Monday, October 12, 2009 7:24 AM, Christian Gagneraud wrote:
> This patch add support for the ADC found in the EP93XX.
> 
> This work is based on S3C platform ADC, apart from hardware related
> stuff, the following modifications have been done:
> - Remove touchscreen support:
>   On S3C the TS is a "normal" ADC client, but it has priority over all
>   other clients. On EP93XX the TS controller is built-in and offer
>   advanced features.
> - Remove convert and select callbacks:
>   This was done for the shake of simplicity, it can be added easily.
> - Channel definition:
>   On S3c, channel is just an index (unsigned char). On EP93xx channel
>   is the analog switch configuration (unsigned long), it gives the
>   client full freedom on how to make the analog conversion (including
>   routing VRef+ and VRef-, activationg PU/PD resistors, connecting
>   pins to VDD/GND, ...)
> 
> 
> This is a first draft. Comments and criticism welcome.
> 
> Signed-off-by: Christian Gagneraud <cgagneraud at techworks.ie>
> ---

[snip]

> diff --git a/arch/arm/mach-ep93xx/Makefile b/arch/arm/mach-ep93xx/Makefile
> index eae6199..e3c62fe 100644
> --- a/arch/arm/mach-ep93xx/Makefile
> +++ b/arch/arm/mach-ep93xx/Makefile
> @@ -6,6 +6,8 @@ obj-m			:=
>  obj-n			:=
>  obj-			:=
>  
> +obj-$(CONFIG_EP93XX_ADC)	+= adc.o

This Kconfig option is not defined in the patch.

Regards,
Hartley



More information about the linux-arm-kernel mailing list