]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-imx/mach-imx6sl.c
Merge remote-tracking branch 'ep93xx/ep93xx-for-next'
[karo-tx-linux.git] / arch / arm / mach-imx / mach-imx6sl.c
1 /*
2  * Copyright 2013 Freescale Semiconductor, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  */
9
10 #include <linux/irqchip.h>
11 #include <linux/of.h>
12 #include <linux/of_platform.h>
13 #include <asm/mach/arch.h>
14 #include <asm/mach/map.h>
15
16 #include "common.h"
17
18 static void __init imx6sl_init_machine(void)
19 {
20         mxc_arch_reset_init_dt();
21
22         of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
23 }
24
25 static void __init imx6sl_init_irq(void)
26 {
27         imx_init_l2cache();
28         imx_src_init();
29         imx_gpc_init();
30         irqchip_init();
31 }
32
33 static const char *imx6sl_dt_compat[] __initdata = {
34         "fsl,imx6sl",
35         NULL,
36 };
37
38 DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
39         .map_io         = debug_ll_io_init,
40         .init_irq       = imx6sl_init_irq,
41         .init_machine   = imx6sl_init_machine,
42         .dt_compat      = imx6sl_dt_compat,
43         .restart        = mxc_restart,
44 MACHINE_END