diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-11-05 17:18:28 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-01-12 11:47:32 -0500 |
commit | 0529e315bbda5d502c93df2cfafba9bb337fbdf4 (patch) | |
tree | 461bf1c88c60e294e598eaa52d9b0b46b4ffd3ba /arch/arm/mach-spear13xx | |
parent | 81243e444c6e9d1625073e4a3d3bc244c8a545f0 (diff) |
ARM: use common irqchip_init for GIC init
Convert all GIC DT initialization over to use common irqchip_init
function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Viresh Kumar <viresh.linux@gmail.com>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-spear13xx')
-rw-r--r-- | arch/arm/mach-spear13xx/include/mach/generic.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear1310.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear1340.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-spear13xx/spear13xx.c | 13 |
4 files changed, 5 insertions, 17 deletions
diff --git a/arch/arm/mach-spear13xx/include/mach/generic.h b/arch/arm/mach-spear13xx/include/mach/generic.h index c33f4d9361bd..510dec798221 100644 --- a/arch/arm/mach-spear13xx/include/mach/generic.h +++ b/arch/arm/mach-spear13xx/include/mach/generic.h | |||
@@ -28,7 +28,6 @@ extern struct dw_dma_slave nand_write_dma_priv; | |||
28 | /* Add spear13xx family function declarations here */ | 28 | /* Add spear13xx family function declarations here */ |
29 | void __init spear_setup_of_timer(void); | 29 | void __init spear_setup_of_timer(void); |
30 | void __init spear13xx_map_io(void); | 30 | void __init spear13xx_map_io(void); |
31 | void __init spear13xx_dt_init_irq(void); | ||
32 | void __init spear13xx_l2x0_init(void); | 31 | void __init spear13xx_l2x0_init(void); |
33 | bool dw_dma_filter(struct dma_chan *chan, void *slave); | 32 | bool dw_dma_filter(struct dma_chan *chan, void *slave); |
34 | void spear_restart(char, const char *); | 33 | void spear_restart(char, const char *); |
diff --git a/arch/arm/mach-spear13xx/spear1310.c b/arch/arm/mach-spear13xx/spear1310.c index 295bb04b444a..5de3e6f24aad 100644 --- a/arch/arm/mach-spear13xx/spear1310.c +++ b/arch/arm/mach-spear13xx/spear1310.c | |||
@@ -14,9 +14,9 @@ | |||
14 | #define pr_fmt(fmt) "SPEAr1310: " fmt | 14 | #define pr_fmt(fmt) "SPEAr1310: " fmt |
15 | 15 | ||
16 | #include <linux/amba/pl022.h> | 16 | #include <linux/amba/pl022.h> |
17 | #include <linux/irqchip.h> | ||
17 | #include <linux/of_platform.h> | 18 | #include <linux/of_platform.h> |
18 | #include <linux/pata_arasan_cf_data.h> | 19 | #include <linux/pata_arasan_cf_data.h> |
19 | #include <asm/hardware/gic.h> | ||
20 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
21 | #include <asm/mach/map.h> | 21 | #include <asm/mach/map.h> |
22 | #include <mach/generic.h> | 22 | #include <mach/generic.h> |
@@ -90,7 +90,7 @@ static void __init spear1310_map_io(void) | |||
90 | DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree") | 90 | DT_MACHINE_START(SPEAR1310_DT, "ST SPEAr1310 SoC with Flattened Device Tree") |
91 | .smp = smp_ops(spear13xx_smp_ops), | 91 | .smp = smp_ops(spear13xx_smp_ops), |
92 | .map_io = spear1310_map_io, | 92 | .map_io = spear1310_map_io, |
93 | .init_irq = spear13xx_dt_init_irq, | 93 | .init_irq = irqchip_init, |
94 | .timer = &spear13xx_timer, | 94 | .timer = &spear13xx_timer, |
95 | .init_machine = spear1310_dt_init, | 95 | .init_machine = spear1310_dt_init, |
96 | .restart = spear_restart, | 96 | .restart = spear_restart, |
diff --git a/arch/arm/mach-spear13xx/spear1340.c b/arch/arm/mach-spear13xx/spear1340.c index c3a770228ea3..18331deaed76 100644 --- a/arch/arm/mach-spear13xx/spear1340.c +++ b/arch/arm/mach-spear13xx/spear1340.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/delay.h> | 18 | #include <linux/delay.h> |
19 | #include <linux/dw_dmac.h> | 19 | #include <linux/dw_dmac.h> |
20 | #include <linux/of_platform.h> | 20 | #include <linux/of_platform.h> |
21 | #include <asm/hardware/gic.h> | 21 | #include <linux/irqchip.h> |
22 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
23 | #include <mach/dma.h> | 23 | #include <mach/dma.h> |
24 | #include <mach/generic.h> | 24 | #include <mach/generic.h> |
@@ -184,7 +184,7 @@ static const char * const spear1340_dt_board_compat[] = { | |||
184 | DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") | 184 | DT_MACHINE_START(SPEAR1340_DT, "ST SPEAr1340 SoC with Flattened Device Tree") |
185 | .smp = smp_ops(spear13xx_smp_ops), | 185 | .smp = smp_ops(spear13xx_smp_ops), |
186 | .map_io = spear13xx_map_io, | 186 | .map_io = spear13xx_map_io, |
187 | .init_irq = spear13xx_dt_init_irq, | 187 | .init_irq = irqchip_init, |
188 | .timer = &spear13xx_timer, | 188 | .timer = &spear13xx_timer, |
189 | .init_machine = spear1340_dt_init, | 189 | .init_machine = spear1340_dt_init, |
190 | .restart = spear_restart, | 190 | .restart = spear_restart, |
diff --git a/arch/arm/mach-spear13xx/spear13xx.c b/arch/arm/mach-spear13xx/spear13xx.c index c4af775a8451..22e3cd57e750 100644 --- a/arch/arm/mach-spear13xx/spear13xx.c +++ b/arch/arm/mach-spear13xx/spear13xx.c | |||
@@ -17,9 +17,8 @@ | |||
17 | #include <linux/clk.h> | 17 | #include <linux/clk.h> |
18 | #include <linux/dw_dmac.h> | 18 | #include <linux/dw_dmac.h> |
19 | #include <linux/err.h> | 19 | #include <linux/err.h> |
20 | #include <linux/of_irq.h> | 20 | #include <linux/of.h> |
21 | #include <asm/hardware/cache-l2x0.h> | 21 | #include <asm/hardware/cache-l2x0.h> |
22 | #include <asm/hardware/gic.h> | ||
23 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
24 | #include <asm/smp_twd.h> | 23 | #include <asm/smp_twd.h> |
25 | #include <mach/dma.h> | 24 | #include <mach/dma.h> |
@@ -186,13 +185,3 @@ static void __init spear13xx_timer_init(void) | |||
186 | struct sys_timer spear13xx_timer = { | 185 | struct sys_timer spear13xx_timer = { |
187 | .init = spear13xx_timer_init, | 186 | .init = spear13xx_timer_init, |
188 | }; | 187 | }; |
189 | |||
190 | static const struct of_device_id gic_of_match[] __initconst = { | ||
191 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init }, | ||
192 | { /* Sentinel */ } | ||
193 | }; | ||
194 | |||
195 | void __init spear13xx_dt_init_irq(void) | ||
196 | { | ||
197 | of_irq_init(gic_of_match); | ||
198 | } | ||