imx35-dt.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright 2012 Steffen Trumtrar, Pengutronix
  3. *
  4. * based on imx27-dt.c
  5. *
  6. * This program is free software; you can redistribute it and/or modify it under
  7. * the terms of the GNU General Public License version 2 as published by the
  8. * Free Software Foundation.
  9. */
  10. #include <linux/irq.h>
  11. #include <linux/irqdomain.h>
  12. #include <linux/of_irq.h>
  13. #include <linux/of_platform.h>
  14. #include <linux/clk-provider.h>
  15. #include <linux/clocksource.h>
  16. #include <asm/mach/arch.h>
  17. #include <asm/mach/time.h>
  18. #include <asm/hardware/cache-l2x0.h>
  19. #include "common.h"
  20. #include "mx35.h"
  21. static void __init imx35_dt_init(void)
  22. {
  23. mxc_arch_reset_init_dt();
  24. of_platform_populate(NULL, of_default_bus_match_table,
  25. NULL, NULL);
  26. }
  27. static void __init imx35_irq_init(void)
  28. {
  29. imx_init_l2cache();
  30. mx35_init_irq();
  31. }
  32. static const char *imx35_dt_board_compat[] __initconst = {
  33. "fsl,imx35",
  34. NULL
  35. };
  36. DT_MACHINE_START(IMX35_DT, "Freescale i.MX35 (Device Tree Support)")
  37. .map_io = mx35_map_io,
  38. .init_early = imx35_init_early,
  39. .init_irq = imx35_irq_init,
  40. .init_machine = imx35_dt_init,
  41. .dt_compat = imx35_dt_board_compat,
  42. .restart = mxc_restart,
  43. MACHINE_END