[PATCH 1/3] ARM: AT91: Add platform data for the ADCs
Nicolas Ferre
nicolas.ferre at atmel.com
Mon Nov 14 06:29:23 EST 2011
On 11/14/2011 11:06 AM, Maxime Ripard :
> Cc: Nicolas Ferre <nicolas.ferre at atmel.com>
> Cc: Patrice Vilchez <patrice.vilchez at atmel.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
> Acked-by: Jonathan Cameron <jic23 at cam.ac.uk>
Signed-off-by: Nicolas Ferre <nicolas.ferre at atmel.com>
> ---
> arch/arm/mach-at91/include/mach/board.h | 18 ++++++++++++++++++
> 1 files changed, 18 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
> index ed544a0..4f27797 100644
> --- a/arch/arm/mach-at91/include/mach/board.h
> +++ b/arch/arm/mach-at91/include/mach/board.h
> @@ -207,4 +207,22 @@ extern void __init at91_pwm_leds(struct gpio_led *leds, int nr);
> /* FIXME: this needs a better location, but gets stuff building again */
> extern int at91_suspend_entering_slow_clock(void);
>
> +/* ADC */
> +struct at91_adc_data {
> + /* ADC Clock as specified by the datasheet, in Hz. */
> + unsigned int adc_clock;
> + /*
> + * Global number of channels available (to specify which channels are
> + * indeed used on the board, see the channels_used bitmask).
> + */
> + u8 num_channels;
> + /* Channels in use on the board as a bitmask */
> + unsigned long channels_used;
> + /* Startup time of the ADC, in microseconds. */
> + u8 startup_time;
> + /* Reference voltage for the ADC in millivolts */
> + unsigned short vref;
> +};
> +extern void __init at91_add_device_adc(struct at91_adc_data *data);
> +
> #endif
--
Nicolas Ferre
More information about the linux-arm-kernel
mailing list