mach-imx6sl.c 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/irqchip.h>
  10. #include <linux/of.h>
  11. #include <linux/of_platform.h>
  12. #include <asm/mach/arch.h>
  13. #include <asm/mach/map.h>
  14. #include "common.h"
  15. static void __init imx6sl_init_machine(void)
  16. {
  17. mxc_arch_reset_init_dt();
  18. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  19. }
  20. static void __init imx6sl_init_irq(void)
  21. {
  22. imx_init_l2cache();
  23. imx_src_init();
  24. imx_gpc_init();
  25. irqchip_init();
  26. }
  27. static const char *imx6sl_dt_compat[] __initdata = {
  28. "fsl,imx6sl",
  29. NULL,
  30. };
  31. DT_MACHINE_START(IMX6SL, "Freescale i.MX6 SoloLite (Device Tree)")
  32. .map_io = debug_ll_io_init,
  33. .init_irq = imx6sl_init_irq,
  34. .init_machine = imx6sl_init_machine,
  35. .dt_compat = imx6sl_dt_compat,
  36. .restart = mxc_restart,
  37. MACHINE_END