From mboxrd@z Thu Jan 1 00:00:00 1970 From: jic23@kernel.org (Jonathan Cameron) Date: Wed, 18 Apr 2012 18:57:09 +0100 Subject: [PATCH 4/6] IIO: AT91: ADC: Add support for the AT91SAM9M10G45-EK board In-Reply-To: <1334756036-15944-5-git-send-email-maxime.ripard@free-electrons.com> References: <1334756036-15944-1-git-send-email-maxime.ripard@free-electrons.com> <1334756036-15944-5-git-send-email-maxime.ripard@free-electrons.com> Message-ID: <4F8F0075.9010303@kernel.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 04/18/2012 02:33 PM, Maxime Ripard wrote: > This patch adds the necessary logic and the required platform_data to > support the ADC present in the AT91SAM9M10G45-EK board from Atmel. It > only supports software triggers for now. Same possible issue as with the other one... Actually, not sure why I acked that given I know very little about the particular platform. Hence I'm fine with these, but not really for me to say whether they are good! > > Signed-off-by: Maxime Ripard > > Cc: Jean-Christophe PLAGNIOL-VILLARD > Cc: Patrice Vilchez > Cc: Thomas Petazzoni > Cc: Nicolas Ferre > --- > arch/arm/mach-at91/at91sam9g45.c | 2 + > arch/arm/mach-at91/at91sam9g45_devices.c | 61 ++++++++++++++++++++++++++++++ > arch/arm/mach-at91/board-sam9m10g45ek.c | 11 +++++ > drivers/staging/iio/adc/at91_adc.c | 11 +++++ > 4 files changed, 85 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c > index d222f83..c6c35bc 100644 > --- a/arch/arm/mach-at91/at91sam9g45.c > +++ b/arch/arm/mach-at91/at91sam9g45.c > @@ -242,6 +242,8 @@ static struct clk_lookup periph_clocks_lookups[] = { > CLKDEV_CON_ID("pioC", &pioC_clk), > CLKDEV_CON_ID("pioD", &pioDE_clk), > CLKDEV_CON_ID("pioE", &pioDE_clk), > + /* Fake adc clock */ > + CLKDEV_CON_ID("adc_clk", &tsc_clk), > }; > > static struct clk_lookup usart_clocks_lookups[] = { > diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c > index 6b008ae..05bc673 100644 > --- a/arch/arm/mach-at91/at91sam9g45_devices.c > +++ b/arch/arm/mach-at91/at91sam9g45_devices.c > @@ -19,6 +19,8 @@ > #include > #include > > +#include > + > #include > #include