mach-imx6sl.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include <linux/clk-provider.h>
  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. #include "common.h"
  17. static void __init imx6sl_init_machine(void)
  18. {
  19. mxc_arch_reset_init_dt();
  20. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  21. }
  22. static void __init imx6sl_init_irq(void)
  23. {
  24. l2x0_of_init(0, ~0UL);
  25. imx_src_init();
  26. imx_gpc_init();
  27. irqchip_init();
  28. }
  29. static void __init imx6sl_timer_init(void)
  30. {
  31. of_clk_init(NULL);
  32. }
  33. static const char *imx6sl_dt_compat[] __initdata = {
  34. "fsl,imx6sl",
  35. NULL,
  36. };
  37. DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
  38. .map_io = debug_ll_io_init,
  39. .init_irq = imx6sl_init_irq,
  40. .init_time = imx6sl_timer_init,
  41. .init_machine = imx6sl_init_machine,
  42. .dt_compat = imx6sl_dt_compat,
  43. .restart = mxc_restart,
  44. MACHINE_END