diff options
Diffstat (limited to 'arch/arm/mach-shmobile/setup-emev2.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-emev2.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c index ea61cb657ac3..47662a581c0a 100644 --- a/arch/arm/mach-shmobile/setup-emev2.c +++ b/arch/arm/mach-shmobile/setup-emev2.c | |||
@@ -20,13 +20,14 @@ | |||
20 | #include <linux/init.h> | 20 | #include <linux/init.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/irq.h> | 22 | #include <linux/irq.h> |
23 | #include <linux/irqchip.h> | ||
23 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
24 | #include <linux/platform_data/gpio-em.h> | 25 | #include <linux/platform_data/gpio-em.h> |
25 | #include <linux/of_platform.h> | 26 | #include <linux/of_platform.h> |
26 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
27 | #include <linux/input.h> | 28 | #include <linux/input.h> |
28 | #include <linux/io.h> | 29 | #include <linux/io.h> |
29 | #include <linux/of_irq.h> | 30 | #include <linux/irqchip/arm-gic.h> |
30 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
31 | #include <mach/common.h> | 32 | #include <mach/common.h> |
32 | #include <mach/emev2.h> | 33 | #include <mach/emev2.h> |
@@ -35,7 +36,6 @@ | |||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
38 | #include <asm/hardware/gic.h> | ||
39 | 39 | ||
40 | static struct map_desc emev2_io_desc[] __initdata = { | 40 | static struct map_desc emev2_io_desc[] __initdata = { |
41 | #ifdef CONFIG_SMP | 41 | #ifdef CONFIG_SMP |
@@ -445,27 +445,16 @@ void __init emev2_add_standard_devices_dt(void) | |||
445 | emev2_auxdata_lookup, NULL); | 445 | emev2_auxdata_lookup, NULL); |
446 | } | 446 | } |
447 | 447 | ||
448 | static const struct of_device_id emev2_dt_irq_match[] = { | ||
449 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
450 | {}, | ||
451 | }; | ||
452 | |||
453 | static const char *emev2_boards_compat_dt[] __initdata = { | 448 | static const char *emev2_boards_compat_dt[] __initdata = { |
454 | "renesas,emev2", | 449 | "renesas,emev2", |
455 | NULL, | 450 | NULL, |
456 | }; | 451 | }; |
457 | 452 | ||
458 | void __init emev2_init_irq_dt(void) | ||
459 | { | ||
460 | of_irq_init(emev2_dt_irq_match); | ||
461 | } | ||
462 | |||
463 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") | 453 | DT_MACHINE_START(EMEV2_DT, "Generic Emma Mobile EV2 (Flattened Device Tree)") |
464 | .smp = smp_ops(emev2_smp_ops), | 454 | .smp = smp_ops(emev2_smp_ops), |
465 | .init_early = emev2_init_delay, | 455 | .init_early = emev2_init_delay, |
466 | .nr_irqs = NR_IRQS_LEGACY, | 456 | .nr_irqs = NR_IRQS_LEGACY, |
467 | .init_irq = emev2_init_irq_dt, | 457 | .init_irq = irqchip_init, |
468 | .handle_irq = gic_handle_irq, | ||
469 | .init_machine = emev2_add_standard_devices_dt, | 458 | .init_machine = emev2_add_standard_devices_dt, |
470 | .init_time = shmobile_timer_init, | 459 | .init_time = shmobile_timer_init, |
471 | .dt_compat = emev2_boards_compat_dt, | 460 | .dt_compat = emev2_boards_compat_dt, |