diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-04-21 03:45:37 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-05-12 15:03:26 -0400 |
commit | 30551c0108e0d2fed48778a6bbd52843088bcb7b (patch) | |
tree | b26eba9ad07964e76465bddb42474e25c4690597 /arch/arm/mach-spear3xx | |
parent | fa599c333d3d66846545026b41bcf36d1350fe30 (diff) |
SPEAr: Add DT bindings for SPEAr's timer
All SPEAr SoC's use ST's Timer module. This patch adds device tree probing
capability for that.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-spear3xx')
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/generic.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/irqs.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/spear.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-spear3xx/spear3xx.c | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-spear3xx/include/mach/generic.h b/arch/arm/mach-spear3xx/include/mach/generic.h index e4f4d721cda2..efb69357429a 100644 --- a/arch/arm/mach-spear3xx/include/mach/generic.h +++ b/arch/arm/mach-spear3xx/include/mach/generic.h | |||
@@ -28,7 +28,7 @@ extern struct pl022_ssp_controller pl022_plat_data; | |||
28 | extern struct pl08x_platform_data pl080_plat_data; | 28 | extern struct pl08x_platform_data pl080_plat_data; |
29 | 29 | ||
30 | /* Add spear3xx family function declarations here */ | 30 | /* Add spear3xx family function declarations here */ |
31 | void __init spear_setup_timer(resource_size_t base, int irq); | 31 | void __init spear_setup_of_timer(void); |
32 | void __init spear3xx_map_io(void); | 32 | void __init spear3xx_map_io(void); |
33 | void __init spear3xx_dt_init_irq(void); | 33 | void __init spear3xx_dt_init_irq(void); |
34 | 34 | ||
diff --git a/arch/arm/mach-spear3xx/include/mach/irqs.h b/arch/arm/mach-spear3xx/include/mach/irqs.h index 319620a1afb4..51bd62a0254c 100644 --- a/arch/arm/mach-spear3xx/include/mach/irqs.h +++ b/arch/arm/mach-spear3xx/include/mach/irqs.h | |||
@@ -16,7 +16,6 @@ | |||
16 | 16 | ||
17 | /* FIXME: probe all these from DT */ | 17 | /* FIXME: probe all these from DT */ |
18 | #define SPEAR3XX_IRQ_INTRCOMM_RAS_ARM 1 | 18 | #define SPEAR3XX_IRQ_INTRCOMM_RAS_ARM 1 |
19 | #define SPEAR3XX_IRQ_CPU_GPT1_1 2 | ||
20 | #define SPEAR3XX_IRQ_GEN_RAS_1 28 | 19 | #define SPEAR3XX_IRQ_GEN_RAS_1 28 |
21 | #define SPEAR3XX_IRQ_GEN_RAS_2 29 | 20 | #define SPEAR3XX_IRQ_GEN_RAS_2 29 |
22 | #define SPEAR3XX_IRQ_GEN_RAS_3 30 | 21 | #define SPEAR3XX_IRQ_GEN_RAS_3 30 |
diff --git a/arch/arm/mach-spear3xx/include/mach/spear.h b/arch/arm/mach-spear3xx/include/mach/spear.h index 6d4dadc67633..04da906b0d4c 100644 --- a/arch/arm/mach-spear3xx/include/mach/spear.h +++ b/arch/arm/mach-spear3xx/include/mach/spear.h | |||
@@ -26,7 +26,6 @@ | |||
26 | /* ML1 - Multi Layer CPU Subsystem */ | 26 | /* ML1 - Multi Layer CPU Subsystem */ |
27 | #define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000) | 27 | #define SPEAR3XX_ICM3_ML1_2_BASE UL(0xF0000000) |
28 | #define VA_SPEAR6XX_ML_CPU_BASE UL(0xF0000000) | 28 | #define VA_SPEAR6XX_ML_CPU_BASE UL(0xF0000000) |
29 | #define SPEAR3XX_CPU_TMR_BASE UL(0xF0000000) | ||
30 | 29 | ||
31 | /* ICM3 - Basic Subsystem */ | 30 | /* ICM3 - Basic Subsystem */ |
32 | #define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000) | 31 | #define SPEAR3XX_ICM3_SMI_CTRL_BASE UL(0xFC000000) |
diff --git a/arch/arm/mach-spear3xx/spear3xx.c b/arch/arm/mach-spear3xx/spear3xx.c index bbb11efa6056..25c6c67d5b07 100644 --- a/arch/arm/mach-spear3xx/spear3xx.c +++ b/arch/arm/mach-spear3xx/spear3xx.c | |||
@@ -534,7 +534,7 @@ static void __init spear3xx_timer_init(void) | |||
534 | clk_put(gpt_clk); | 534 | clk_put(gpt_clk); |
535 | clk_put(pclk); | 535 | clk_put(pclk); |
536 | 536 | ||
537 | spear_setup_timer(SPEAR3XX_CPU_TMR_BASE, SPEAR3XX_IRQ_CPU_GPT1_1); | 537 | spear_setup_of_timer(); |
538 | } | 538 | } |
539 | 539 | ||
540 | struct sys_timer spear3xx_timer = { | 540 | struct sys_timer spear3xx_timer = { |