diff options
Diffstat (limited to 'arch/arm/mach-zynq/common.c')
-rw-r--r-- | arch/arm/mach-zynq/common.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index e16d4bed0f7a..5c8983218183 100644 --- a/arch/arm/mach-zynq/common.c +++ b/arch/arm/mach-zynq/common.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/of_irq.h> | 24 | #include <linux/of_irq.h> |
25 | #include <linux/of_platform.h> | 25 | #include <linux/of_platform.h> |
26 | #include <linux/of.h> | 26 | #include <linux/of.h> |
27 | #include <linux/irqchip.h> | ||
27 | 28 | ||
28 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
29 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
@@ -31,7 +32,6 @@ | |||
31 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
32 | #include <asm/page.h> | 33 | #include <asm/page.h> |
33 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
34 | #include <asm/hardware/gic.h> | ||
35 | #include <asm/hardware/cache-l2x0.h> | 35 | #include <asm/hardware/cache-l2x0.h> |
36 | 36 | ||
37 | #include "common.h" | 37 | #include "common.h" |
@@ -55,19 +55,6 @@ static void __init xilinx_init_machine(void) | |||
55 | of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); | 55 | of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); |
56 | } | 56 | } |
57 | 57 | ||
58 | static struct of_device_id irq_match[] __initdata = { | ||
59 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
60 | { } | ||
61 | }; | ||
62 | |||
63 | /** | ||
64 | * xilinx_irq_init() - Interrupt controller initialization for the GIC. | ||
65 | */ | ||
66 | static void __init xilinx_irq_init(void) | ||
67 | { | ||
68 | of_irq_init(irq_match); | ||
69 | } | ||
70 | |||
71 | #define SCU_PERIPH_PHYS 0xF8F00000 | 58 | #define SCU_PERIPH_PHYS 0xF8F00000 |
72 | #define SCU_PERIPH_SIZE SZ_8K | 59 | #define SCU_PERIPH_SIZE SZ_8K |
73 | #define SCU_PERIPH_VIRT (VMALLOC_END - SCU_PERIPH_SIZE) | 60 | #define SCU_PERIPH_VIRT (VMALLOC_END - SCU_PERIPH_SIZE) |
@@ -90,16 +77,9 @@ static void __init xilinx_zynq_timer_init(void) | |||
90 | 77 | ||
91 | xilinx_zynq_clocks_init(slcr); | 78 | xilinx_zynq_clocks_init(slcr); |
92 | 79 | ||
93 | xttcpss_timer_init(); | 80 | xttcps_timer_init(); |
94 | } | 81 | } |
95 | 82 | ||
96 | /* | ||
97 | * Instantiate and initialize the system timer structure | ||
98 | */ | ||
99 | static struct sys_timer xttcpss_sys_timer = { | ||
100 | .init = xilinx_zynq_timer_init, | ||
101 | }; | ||
102 | |||
103 | /** | 83 | /** |
104 | * xilinx_map_io() - Create memory mappings needed for early I/O. | 84 | * xilinx_map_io() - Create memory mappings needed for early I/O. |
105 | */ | 85 | */ |
@@ -117,9 +97,8 @@ static const char *xilinx_dt_match[] = { | |||
117 | 97 | ||
118 | MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform") | 98 | MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform") |
119 | .map_io = xilinx_map_io, | 99 | .map_io = xilinx_map_io, |
120 | .init_irq = xilinx_irq_init, | 100 | .init_irq = irqchip_init, |
121 | .handle_irq = gic_handle_irq, | ||
122 | .init_machine = xilinx_init_machine, | 101 | .init_machine = xilinx_init_machine, |
123 | .timer = &xttcpss_sys_timer, | 102 | .init_time = xilinx_zynq_timer_init, |
124 | .dt_compat = xilinx_dt_match, | 103 | .dt_compat = xilinx_dt_match, |
125 | MACHINE_END | 104 | MACHINE_END |