diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6q.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 4eb1b3ac794c..5a18e7e5c564 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/init.h> | 18 | #include <linux/init.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/of.h> | 22 | #include <linux/of.h> |
22 | #include <linux/of_address.h> | 23 | #include <linux/of_address.h> |
23 | #include <linux/of_irq.h> | 24 | #include <linux/of_irq.h> |
@@ -29,8 +30,8 @@ | |||
29 | #include <asm/cpuidle.h> | 30 | #include <asm/cpuidle.h> |
30 | #include <asm/smp_twd.h> | 31 | #include <asm/smp_twd.h> |
31 | #include <asm/hardware/cache-l2x0.h> | 32 | #include <asm/hardware/cache-l2x0.h> |
32 | #include <asm/hardware/gic.h> | ||
33 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/map.h> | ||
34 | #include <asm/mach/time.h> | 35 | #include <asm/mach/time.h> |
35 | #include <asm/system_misc.h> | 36 | #include <asm/system_misc.h> |
36 | 37 | ||
@@ -216,22 +217,16 @@ static void __init imx6q_init_late(void) | |||
216 | 217 | ||
217 | static void __init imx6q_map_io(void) | 218 | static void __init imx6q_map_io(void) |
218 | { | 219 | { |
219 | imx_lluart_map_io(); | 220 | debug_ll_io_init(); |
220 | imx_scu_map_io(); | 221 | imx_scu_map_io(); |
221 | imx6q_clock_map_io(); | ||
222 | } | 222 | } |
223 | 223 | ||
224 | static const struct of_device_id imx6q_irq_match[] __initconst = { | ||
225 | { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, }, | ||
226 | { /* sentinel */ } | ||
227 | }; | ||
228 | |||
229 | static void __init imx6q_init_irq(void) | 224 | static void __init imx6q_init_irq(void) |
230 | { | 225 | { |
231 | l2x0_of_init(0, ~0UL); | 226 | l2x0_of_init(0, ~0UL); |
232 | imx_src_init(); | 227 | imx_src_init(); |
233 | imx_gpc_init(); | 228 | imx_gpc_init(); |
234 | of_irq_init(imx6q_irq_match); | 229 | irqchip_init(); |
235 | } | 230 | } |
236 | 231 | ||
237 | static void __init imx6q_timer_init(void) | 232 | static void __init imx6q_timer_init(void) |
@@ -241,10 +236,6 @@ static void __init imx6q_timer_init(void) | |||
241 | imx_print_silicon_rev("i.MX6Q", imx6q_revision()); | 236 | imx_print_silicon_rev("i.MX6Q", imx6q_revision()); |
242 | } | 237 | } |
243 | 238 | ||
244 | static struct sys_timer imx6q_timer = { | ||
245 | .init = imx6q_timer_init, | ||
246 | }; | ||
247 | |||
248 | static const char *imx6q_dt_compat[] __initdata = { | 239 | static const char *imx6q_dt_compat[] __initdata = { |
249 | "fsl,imx6q", | 240 | "fsl,imx6q", |
250 | NULL, | 241 | NULL, |
@@ -254,8 +245,7 @@ DT_MACHINE_START(IMX6Q, "Freescale i.MX6 Quad (Device Tree)") | |||
254 | .smp = smp_ops(imx_smp_ops), | 245 | .smp = smp_ops(imx_smp_ops), |
255 | .map_io = imx6q_map_io, | 246 | .map_io = imx6q_map_io, |
256 | .init_irq = imx6q_init_irq, | 247 | .init_irq = imx6q_init_irq, |
257 | .handle_irq = imx6q_handle_irq, | 248 | .init_time = imx6q_timer_init, |
258 | .timer = &imx6q_timer, | ||
259 | .init_machine = imx6q_init_machine, | 249 | .init_machine = imx6q_init_machine, |
260 | .init_late = imx6q_init_late, | 250 | .init_late = imx6q_init_late, |
261 | .dt_compat = imx6q_dt_compat, | 251 | .dt_compat = imx6q_dt_compat, |