ARM: imx6sl: add imx6sl iomux-gpr field define
[linux-2.6-block.git] / arch / arm / mach-imx / mach-imx6sl.c
CommitLineData
31a2fbf7
SG
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>
31a2fbf7
SG
13#include <asm/mach/arch.h>
14#include <asm/mach/map.h>
15
16#include "common.h"
17
18static 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
25static void __init imx6sl_init_irq(void)
26{
73dada7f 27 imx_init_l2cache();
31a2fbf7
SG
28 imx_src_init();
29 imx_gpc_init();
30 irqchip_init();
31}
32
31a2fbf7
SG
33static const char *imx6sl_dt_compat[] __initdata = {
34 "fsl,imx6sl",
35 NULL,
36};
37
38DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
39 .map_io = debug_ll_io_init,
40 .init_irq = imx6sl_init_irq,
31a2fbf7
SG
41 .init_machine = imx6sl_init_machine,
42 .dt_compat = imx6sl_dt_compat,
43 .restart = mxc_restart,
44MACHINE_END