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