diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2014-07-10 13:14:21 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2014-08-19 14:32:49 -0400 |
commit | 3b26f39b0ab1f390365701981e831aa128e3e4ac (patch) | |
tree | 166bdb960f9231e1c986e034128fb27c960f3c1a /arch/arm/mach-at91/board-dt-rm9200.c | |
parent | 071926041e5b38f84f2aaac2122c57e398e535b5 (diff) |
ARM: at91: make use of the new AIC driver for dt enabled boards
Remove selection of OLD_IRQ_AT91 when selecting dt boards.
Select ATMEL_AIC_IRQ for sama5 SoCs (a kernel compiled for this SoC will
always use ATMEL_AIC_IRQ driver).
Select ATMEL_AIC_IRQ for at91rm9200 and at91sam9 SoCs only if OLD_IRQ_AT91
is not selected (which means we are compiling a pure DT kernel, without
any legacy board support).
Remove specific irq init code in all dt board files: this init procedure
is automatically handled in of_irq_init which is called by the arm irq core
code and is in charge of calling the appropriate aic init functions.
Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-dt-rm9200.c')
-rw-r--r-- | arch/arm/mach-at91/board-dt-rm9200.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/mach-at91/board-dt-rm9200.c b/arch/arm/mach-at91/board-dt-rm9200.c index 3a185faee795..61ea21445664 100644 --- a/arch/arm/mach-at91/board-dt-rm9200.c +++ b/arch/arm/mach-at91/board-dt-rm9200.c | |||
@@ -24,17 +24,6 @@ | |||
24 | #include "at91_aic.h" | 24 | #include "at91_aic.h" |
25 | #include "generic.h" | 25 | #include "generic.h" |
26 | 26 | ||
27 | |||
28 | static const struct of_device_id irq_of_match[] __initconst = { | ||
29 | { .compatible = "atmel,at91rm9200-aic", .data = at91_aic_of_init }, | ||
30 | { /*sentinel*/ } | ||
31 | }; | ||
32 | |||
33 | static void __init at91rm9200_dt_init_irq(void) | ||
34 | { | ||
35 | of_irq_init(irq_of_match); | ||
36 | } | ||
37 | |||
38 | static const char *at91rm9200_dt_board_compat[] __initdata = { | 27 | static const char *at91rm9200_dt_board_compat[] __initdata = { |
39 | "atmel,at91rm9200", | 28 | "atmel,at91rm9200", |
40 | NULL | 29 | NULL |
@@ -43,8 +32,6 @@ static const char *at91rm9200_dt_board_compat[] __initdata = { | |||
43 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") | 32 | DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200 (Device Tree)") |
44 | .init_time = at91rm9200_timer_init, | 33 | .init_time = at91rm9200_timer_init, |
45 | .map_io = at91_map_io, | 34 | .map_io = at91_map_io, |
46 | .handle_irq = at91_aic_handle_irq, | ||
47 | .init_early = at91rm9200_dt_initialize, | 35 | .init_early = at91rm9200_dt_initialize, |
48 | .init_irq = at91rm9200_dt_init_irq, | ||
49 | .dt_compat = at91rm9200_dt_board_compat, | 36 | .dt_compat = at91rm9200_dt_board_compat, |
50 | MACHINE_END | 37 | MACHINE_END |