imx35-dt.c 953 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_irq_init(void)
  22. {
  23. imx_init_l2cache();
  24. mx35_init_irq();
  25. }
  26. static const char * const imx35_dt_board_compat[] __initconst = {
  27. "fsl,imx35",
  28. NULL
  29. };
  30. DT_MACHINE_START(IMX35_DT, "Freescale i.MX35 (Device Tree Support)")
  31. .map_io = mx35_map_io,
  32. .init_early = imx35_init_early,
  33. .init_irq = imx35_irq_init,
  34. .dt_compat = imx35_dt_board_compat,
  35. MACHINE_END