diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-01-19 04:13:40 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-03-01 07:38:48 -0500 |
commit | 3a61a5dae49bf3d1afb7f75c8acb3607f26565af (patch) | |
tree | 53616025b0d6ff2af767b3f3ca62704774ce09e5 /arch/arm/mach-at91/at91sam9260.c | |
parent | 298312971b2fe8b922a1a15e0a6f5b4da89677d8 (diff) |
ARM: at91/tc: add device tree support to atmel_tclib
Device tree support added to atmel_tclib: the generic Timer Counter
library. This is used by the clocksource/clockevent driver tcb_clksrc.
The current DT enabled platforms are also modified to use it:
- .dtsi files are modified to add Timer Counter Block entries
- alias are created to allow identification of each block
- clkdev lookup tables are added for clocks identification.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9260.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9260.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9260.c b/arch/arm/mach-at91/at91sam9260.c index 4ade265be805..14b5a9c9a514 100644 --- a/arch/arm/mach-at91/at91sam9260.c +++ b/arch/arm/mach-at91/at91sam9260.c | |||
@@ -209,6 +209,13 @@ static struct clk_lookup periph_clocks_lookups[] = { | |||
209 | CLKDEV_CON_DEV_ID("usart", "fffd0000.serial", &usart3_clk), | 209 | CLKDEV_CON_DEV_ID("usart", "fffd0000.serial", &usart3_clk), |
210 | CLKDEV_CON_DEV_ID("usart", "fffd4000.serial", &usart4_clk), | 210 | CLKDEV_CON_DEV_ID("usart", "fffd4000.serial", &usart4_clk), |
211 | CLKDEV_CON_DEV_ID("usart", "fffd8000.serial", &usart5_clk), | 211 | CLKDEV_CON_DEV_ID("usart", "fffd8000.serial", &usart5_clk), |
212 | /* more tc lookup table for DT entries */ | ||
213 | CLKDEV_CON_DEV_ID("t0_clk", "fffa0000.timer", &tc0_clk), | ||
214 | CLKDEV_CON_DEV_ID("t1_clk", "fffa0000.timer", &tc1_clk), | ||
215 | CLKDEV_CON_DEV_ID("t2_clk", "fffa0000.timer", &tc2_clk), | ||
216 | CLKDEV_CON_DEV_ID("t0_clk", "fffdc000.timer", &tc3_clk), | ||
217 | CLKDEV_CON_DEV_ID("t1_clk", "fffdc000.timer", &tc4_clk), | ||
218 | CLKDEV_CON_DEV_ID("t2_clk", "fffdc000.timer", &tc5_clk), | ||
212 | /* fake hclk clock */ | 219 | /* fake hclk clock */ |
213 | CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &ohci_clk), | 220 | CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &ohci_clk), |
214 | CLKDEV_CON_ID("pioA", &pioA_clk), | 221 | CLKDEV_CON_ID("pioA", &pioA_clk), |