aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9g45.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2012-05-11 09:35:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-14 16:25:33 -0400
commit4a5920e848173dafd3907c8789fdb6ec89d0d621 (patch)
tree7189c71bdf39a1303747fd99be9eec7fa94a8ac7 /arch/arm/mach-at91/at91sam9g45.c
parent67b5d7b3e2ce01c091c8adb120b9fffcb2dddc0a (diff)
ARM: AT91: ADC: Add support for the AT91SAM9M10G45-EK board
This patch adds platform data for the AT91 ADC driver support for the AT91SAM9M10G45-EK board. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45.c')
-rw-r--r--arch/arm/mach-at91/at91sam9g45.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
index d222f8333dab..30865c6b9936 100644
--- a/arch/arm/mach-at91/at91sam9g45.c
+++ b/arch/arm/mach-at91/at91sam9g45.c
@@ -176,6 +176,12 @@ static struct clk vdec_clk = {
176 .type = CLK_TYPE_PERIPHERAL, 176 .type = CLK_TYPE_PERIPHERAL,
177}; 177};
178 178
179static struct clk adc_op_clk = {
180 .name = "adc_op_clk",
181 .type = CLK_TYPE_PERIPHERAL,
182 .rate_hz = 13200000,
183};
184
179static struct clk *periph_clocks[] __initdata = { 185static struct clk *periph_clocks[] __initdata = {
180 &pioA_clk, 186 &pioA_clk,
181 &pioB_clk, 187 &pioB_clk,
@@ -204,6 +210,7 @@ static struct clk *periph_clocks[] __initdata = {
204 &isi_clk, 210 &isi_clk,
205 &udphs_clk, 211 &udphs_clk,
206 &mmc1_clk, 212 &mmc1_clk,
213 &adc_op_clk,
207 // irq0 214 // irq0
208}; 215};
209 216
@@ -242,6 +249,8 @@ static struct clk_lookup periph_clocks_lookups[] = {
242 CLKDEV_CON_ID("pioC", &pioC_clk), 249 CLKDEV_CON_ID("pioC", &pioC_clk),
243 CLKDEV_CON_ID("pioD", &pioDE_clk), 250 CLKDEV_CON_ID("pioD", &pioDE_clk),
244 CLKDEV_CON_ID("pioE", &pioDE_clk), 251 CLKDEV_CON_ID("pioE", &pioDE_clk),
252 /* Fake adc clock */
253 CLKDEV_CON_ID("adc_clk", &tsc_clk),
245}; 254};
246 255
247static struct clk_lookup usart_clocks_lookups[] = { 256static struct clk_lookup usart_clocks_lookups[] = {