diff options
Diffstat (limited to 'arch/arm/mach-at91/at91sam9261.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9261.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam9261.c b/arch/arm/mach-at91/at91sam9261.c index 6276b4c1acfe..fb164a5d04a9 100644 --- a/arch/arm/mach-at91/at91sam9261.c +++ b/arch/arm/mach-at91/at91sam9261.c | |||
@@ -20,15 +20,18 @@ | |||
20 | #include <asm/system_misc.h> | 20 | #include <asm/system_misc.h> |
21 | #include <mach/cpu.h> | 21 | #include <mach/cpu.h> |
22 | #include <mach/at91sam9261.h> | 22 | #include <mach/at91sam9261.h> |
23 | #include <mach/hardware.h> | ||
23 | 24 | ||
24 | #include "at91_aic.h" | 25 | #include "at91_aic.h" |
25 | #include "at91_rstc.h" | 26 | #include "at91_rstc.h" |
26 | #include "soc.h" | 27 | #include "soc.h" |
27 | #include "generic.h" | 28 | #include "generic.h" |
28 | #include "clock.h" | ||
29 | #include "sam9_smc.h" | 29 | #include "sam9_smc.h" |
30 | #include "pm.h" | 30 | #include "pm.h" |
31 | 31 | ||
32 | #if defined(CONFIG_OLD_CLK_AT91) | ||
33 | #include "clock.h" | ||
34 | |||
32 | /* -------------------------------------------------------------------- | 35 | /* -------------------------------------------------------------------- |
33 | * Clocks | 36 | * Clocks |
34 | * -------------------------------------------------------------------- */ | 37 | * -------------------------------------------------------------------- */ |
@@ -189,6 +192,23 @@ static struct clk_lookup periph_clocks_lookups[] = { | |||
189 | CLKDEV_CON_ID("pioA", &pioA_clk), | 192 | CLKDEV_CON_ID("pioA", &pioA_clk), |
190 | CLKDEV_CON_ID("pioB", &pioB_clk), | 193 | CLKDEV_CON_ID("pioB", &pioB_clk), |
191 | CLKDEV_CON_ID("pioC", &pioC_clk), | 194 | CLKDEV_CON_ID("pioC", &pioC_clk), |
195 | /* more lookup table for DT entries */ | ||
196 | CLKDEV_CON_DEV_ID("usart", "fffff200.serial", &mck), | ||
197 | CLKDEV_CON_DEV_ID("usart", "fffb0000.serial", &usart0_clk), | ||
198 | CLKDEV_CON_DEV_ID("usart", "ffffb400.serial", &usart1_clk), | ||
199 | CLKDEV_CON_DEV_ID("usart", "fff94000.serial", &usart2_clk), | ||
200 | CLKDEV_CON_DEV_ID("t0_clk", "fffa0000.timer", &tc0_clk), | ||
201 | CLKDEV_CON_DEV_ID("t1_clk", "fffa0000.timer", &tc1_clk), | ||
202 | CLKDEV_CON_DEV_ID("t2_clk", "fffa0000.timer", &tc2_clk), | ||
203 | CLKDEV_CON_DEV_ID("hclk", "500000.ohci", &hck0), | ||
204 | CLKDEV_CON_DEV_ID("hclk", "600000.fb", &hck1), | ||
205 | CLKDEV_CON_DEV_ID("spi_clk", "fffc8000.spi", &spi0_clk), | ||
206 | CLKDEV_CON_DEV_ID("spi_clk", "fffcc000.spi", &spi1_clk), | ||
207 | CLKDEV_CON_DEV_ID("mci_clk", "fffa8000.mmc", &mmc_clk), | ||
208 | CLKDEV_CON_DEV_ID(NULL, "fffac000.i2c", &twi_clk), | ||
209 | CLKDEV_CON_DEV_ID(NULL, "fffff400.gpio", &pioA_clk), | ||
210 | CLKDEV_CON_DEV_ID(NULL, "fffff600.gpio", &pioB_clk), | ||
211 | CLKDEV_CON_DEV_ID(NULL, "fffff800.gpio", &pioC_clk), | ||
192 | }; | 212 | }; |
193 | 213 | ||
194 | static struct clk_lookup usart_clocks_lookups[] = { | 214 | static struct clk_lookup usart_clocks_lookups[] = { |
@@ -247,7 +267,9 @@ static void __init at91sam9261_register_clocks(void) | |||
247 | clk_register(&hck0); | 267 | clk_register(&hck0); |
248 | clk_register(&hck1); | 268 | clk_register(&hck1); |
249 | } | 269 | } |
250 | 270 | #else | |
271 | #define at91sam9261_register_clocks NULL | ||
272 | #endif | ||
251 | /* -------------------------------------------------------------------- | 273 | /* -------------------------------------------------------------------- |
252 | * GPIO | 274 | * GPIO |
253 | * -------------------------------------------------------------------- */ | 275 | * -------------------------------------------------------------------- */ |