blob: 0130ee6284f1dcd12283ce81f34933432a620ad8 [file] [log] [blame]
Shawn Guo31a2fbf2013-05-03 11:24:47 +08001/*
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/hardware/cache-l2x0.h>
14#include <asm/mach/arch.h>
15#include <asm/mach/map.h>
16
17#include "common.h"
18
19static void __init imx6sl_init_machine(void)
20{
21 mxc_arch_reset_init_dt();
22
23 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
24}
25
26static void __init imx6sl_init_irq(void)
27{
28 l2x0_of_init(0, ~0UL);
29 imx_src_init();
30 imx_gpc_init();
31 irqchip_init();
32}
33
34static void __init imx6sl_timer_init(void)
35{
36 imx6sl_clocks_init();
37}
38
39static const char *imx6sl_dt_compat[] __initdata = {
40 "fsl,imx6sl",
41 NULL,
42};
43
44DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
45 .map_io = debug_ll_io_init,
46 .init_irq = imx6sl_init_irq,
47 .init_time = imx6sl_timer_init,
48 .init_machine = imx6sl_init_machine,
49 .dt_compat = imx6sl_dt_compat,
50 .restart = mxc_restart,
51MACHINE_END