diff options
author | Olof Johansson <olof@lixom.net> | 2014-07-08 00:47:03 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-08 00:47:03 -0400 |
commit | 12af7011e958f2d2cef3ec1e2b692fb93f9c3dac (patch) | |
tree | 3b151e6d039d8d37e47d3db997869f1fecf658ec /arch/arm/mach-integrator/integrator_ap.c | |
parent | b040614c5bf6af6657574299fdf0572d47b53366 (diff) | |
parent | a54c959d8be9d057b1a192e34a378b74dd81c5f6 (diff) |
Merge tag 'versatile-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux into next/soc
Merge "DT IRQ and clock support for Versatile platforms" from Rob Herring.
This branch moves IRQ and clock support over to DT for the versatile
platforms.
* tag 'versatile-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
clk: versatile: add versatile OSC support
dts: versatile: add clock tree
ARM: timer-sp: allow getting timer1 clock from DT to fallback to legacy clock
dt/bindings: add compatible string for versatile osc clock
dt/bindings: arm-boards: add binding for Versatile core module
dts: versatile: add pl180 compatible strings
ARM: versatile: remove init_irq hook for DT boot
ARM: integrator: convert to use irqchip_init
irqchip: versatile-fpga: add support for arm,versatile-sic
irqchip: versatile-fpga: Add IRQCHIP_DECLARE support
dts: versatile: add missing irq controller properties
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-integrator/integrator_ap.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 660ca6feff40..8ca290b479b1 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/clockchips.h> | 31 | #include <linux/clockchips.h> |
32 | #include <linux/interrupt.h> | 32 | #include <linux/interrupt.h> |
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/irqchip/versatile-fpga.h> | 34 | #include <linux/irqchip.h> |
35 | #include <linux/mtd/physmap.h> | 35 | #include <linux/mtd/physmap.h> |
36 | #include <linux/clk.h> | 36 | #include <linux/clk.h> |
37 | #include <linux/platform_data/clk-integrator.h> | 37 | #include <linux/platform_data/clk-integrator.h> |
@@ -439,15 +439,10 @@ static void __init ap_of_timer_init(void) | |||
439 | integrator_clockevent_init(rate, base, irq); | 439 | integrator_clockevent_init(rate, base, irq); |
440 | } | 440 | } |
441 | 441 | ||
442 | static const struct of_device_id fpga_irq_of_match[] __initconst = { | ||
443 | { .compatible = "arm,versatile-fpga-irq", .data = fpga_irq_of_init, }, | ||
444 | { /* Sentinel */ } | ||
445 | }; | ||
446 | |||
447 | static void __init ap_init_irq_of(void) | 442 | static void __init ap_init_irq_of(void) |
448 | { | 443 | { |
449 | cm_init(); | 444 | cm_init(); |
450 | of_irq_init(fpga_irq_of_match); | 445 | irqchip_init(); |
451 | } | 446 | } |
452 | 447 | ||
453 | /* For the Device Tree, add in the UART callbacks as AUXDATA */ | 448 | /* For the Device Tree, add in the UART callbacks as AUXDATA */ |
@@ -558,7 +553,6 @@ DT_MACHINE_START(INTEGRATOR_AP_DT, "ARM Integrator/AP (Device Tree)") | |||
558 | .map_io = ap_map_io, | 553 | .map_io = ap_map_io, |
559 | .init_early = ap_init_early, | 554 | .init_early = ap_init_early, |
560 | .init_irq = ap_init_irq_of, | 555 | .init_irq = ap_init_irq_of, |
561 | .handle_irq = fpga_handle_irq, | ||
562 | .init_time = ap_of_timer_init, | 556 | .init_time = ap_of_timer_init, |
563 | .init_machine = ap_init_of, | 557 | .init_machine = ap_init_of, |
564 | .restart = integrator_restart, | 558 | .restart = integrator_restart, |