diff options
Diffstat (limited to 'arch/arm/mach-highbank/highbank.c')
-rw-r--r-- | arch/arm/mach-highbank/highbank.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 65656ff0eb33..a4f9f50247d4 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/dma-mapping.h> | 18 | #include <linux/dma-mapping.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/irqchip.h> | ||
21 | #include <linux/irqdomain.h> | 22 | #include <linux/irqdomain.h> |
22 | #include <linux/of.h> | 23 | #include <linux/of.h> |
23 | #include <linux/of_irq.h> | 24 | #include <linux/of_irq.h> |
@@ -34,7 +35,6 @@ | |||
34 | #include <asm/smp_twd.h> | 35 | #include <asm/smp_twd.h> |
35 | #include <asm/hardware/arm_timer.h> | 36 | #include <asm/hardware/arm_timer.h> |
36 | #include <asm/hardware/timer-sp.h> | 37 | #include <asm/hardware/timer-sp.h> |
37 | #include <asm/hardware/gic.h> | ||
38 | #include <asm/hardware/cache-l2x0.h> | 38 | #include <asm/hardware/cache-l2x0.h> |
39 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
40 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
@@ -68,12 +68,6 @@ void highbank_set_cpu_jump(int cpu, void *jump_addr) | |||
68 | HB_JUMP_TABLE_PHYS(cpu) + 15); | 68 | HB_JUMP_TABLE_PHYS(cpu) + 15); |
69 | } | 69 | } |
70 | 70 | ||
71 | const static struct of_device_id irq_match[] = { | ||
72 | { .compatible = "arm,cortex-a15-gic", .data = gic_of_init, }, | ||
73 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
74 | {} | ||
75 | }; | ||
76 | |||
77 | #ifdef CONFIG_CACHE_L2X0 | 71 | #ifdef CONFIG_CACHE_L2X0 |
78 | static void highbank_l2x0_disable(void) | 72 | static void highbank_l2x0_disable(void) |
79 | { | 73 | { |
@@ -84,7 +78,7 @@ static void highbank_l2x0_disable(void) | |||
84 | 78 | ||
85 | static void __init highbank_init_irq(void) | 79 | static void __init highbank_init_irq(void) |
86 | { | 80 | { |
87 | of_irq_init(irq_match); | 81 | irqchip_init(); |
88 | 82 | ||
89 | if (of_find_compatible_node(NULL, NULL, "arm,cortex-a9")) | 83 | if (of_find_compatible_node(NULL, NULL, "arm,cortex-a9")) |
90 | highbank_scu_map_io(); | 84 | highbank_scu_map_io(); |
@@ -131,10 +125,6 @@ static void __init highbank_timer_init(void) | |||
131 | arch_timer_sched_clock_init(); | 125 | arch_timer_sched_clock_init(); |
132 | } | 126 | } |
133 | 127 | ||
134 | static struct sys_timer highbank_timer = { | ||
135 | .init = highbank_timer_init, | ||
136 | }; | ||
137 | |||
138 | static void highbank_power_off(void) | 128 | static void highbank_power_off(void) |
139 | { | 129 | { |
140 | highbank_set_pwr_shutdown(); | 130 | highbank_set_pwr_shutdown(); |
@@ -211,8 +201,7 @@ DT_MACHINE_START(HIGHBANK, "Highbank") | |||
211 | .smp = smp_ops(highbank_smp_ops), | 201 | .smp = smp_ops(highbank_smp_ops), |
212 | .map_io = debug_ll_io_init, | 202 | .map_io = debug_ll_io_init, |
213 | .init_irq = highbank_init_irq, | 203 | .init_irq = highbank_init_irq, |
214 | .timer = &highbank_timer, | 204 | .init_time = highbank_timer_init, |
215 | .handle_irq = gic_handle_irq, | ||
216 | .init_machine = highbank_init, | 205 | .init_machine = highbank_init, |
217 | .dt_compat = highbank_match, | 206 | .dt_compat = highbank_match, |
218 | .restart = highbank_restart, | 207 | .restart = highbank_restart, |