2 * Copyright 2014 Freescale Semiconductor, Inc.
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.
9 #include <linux/irqchip.h>
10 #include <linux/of_platform.h>
11 #include <asm/mach/arch.h>
12 #include <asm/mach/map.h>
17 static void __init imx6sx_init_machine(void)
19 struct device *parent;
21 mxc_arch_reset_init_dt();
23 parent = imx_soc_device_init();
25 pr_warn("failed to initialize soc device\n");
27 of_platform_populate(NULL, of_default_bus_match_table, NULL, parent);
33 static void __init imx6sx_init_irq(void)
35 imx_init_revision_from_anatop();
42 static void __init imx6sx_init_late(void)
47 static const char * const imx6sx_dt_compat[] __initconst = {
52 DT_MACHINE_START(IMX6SX, "Freescale i.MX6 SoloX (Device Tree)")
53 .map_io = debug_ll_io_init,
54 .init_irq = imx6sx_init_irq,
55 .init_machine = imx6sx_init_machine,
56 .dt_compat = imx6sx_dt_compat,
57 .init_late = imx6sx_init_late,
58 .restart = mxc_restart,