mach-imx50.c 978 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright 2013 Greg Ungerer <gerg@uclinux.org>
  3. * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
  4. * Copyright 2011 Linaro Ltd.
  5. *
  6. * The code contained herein is licensed under the GNU General Public
  7. * License. You may obtain a copy of the GNU General Public License
  8. * Version 2 or later at the following locations:
  9. *
  10. * http://www.opensource.org/licenses/gpl-license.html
  11. * http://www.gnu.org/copyleft/gpl.html
  12. */
  13. #include <linux/of_platform.h>
  14. #include <asm/mach/arch.h>
  15. #include "common.h"
  16. static void __init imx50_dt_init(void)
  17. {
  18. mxc_arch_reset_init_dt();
  19. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  20. }
  21. static const char *imx50_dt_board_compat[] __initconst = {
  22. "fsl,imx50",
  23. NULL
  24. };
  25. DT_MACHINE_START(IMX50_DT, "Freescale i.MX50 (Device Tree Support)")
  26. .map_io = mx53_map_io,
  27. .init_irq = mx53_init_irq,
  28. .init_machine = imx50_dt_init,
  29. .dt_compat = imx50_dt_board_compat,
  30. .restart = mxc_restart,
  31. MACHINE_END