pxa-dt.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * linux/arch/arm/mach-pxa/pxa-dt.c
  3. *
  4. * Copyright (C) 2012 Daniel Mack
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * publishhed by the 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 <asm/mach/arch.h>
  15. #include <asm/mach/time.h>
  16. #include <mach/irqs.h>
  17. #include "generic.h"
  18. #ifdef CONFIG_PXA3xx
  19. static const char *const pxa3xx_dt_board_compat[] __initconst = {
  20. "marvell,pxa300",
  21. "marvell,pxa310",
  22. "marvell,pxa320",
  23. NULL,
  24. };
  25. DT_MACHINE_START(PXA_DT, "Marvell PXA3xx (Device Tree Support)")
  26. .map_io = pxa3xx_map_io,
  27. .init_irq = pxa3xx_dt_init_irq,
  28. .handle_irq = pxa3xx_handle_irq,
  29. .restart = pxa_restart,
  30. .dt_compat = pxa3xx_dt_board_compat,
  31. MACHINE_END
  32. #endif
  33. #ifdef CONFIG_PXA27x
  34. static const char * const pxa27x_dt_board_compat[] __initconst = {
  35. "marvell,pxa270",
  36. NULL,
  37. };
  38. DT_MACHINE_START(PXA27X_DT, "Marvell PXA2xx (Device Tree Support)")
  39. .map_io = pxa27x_map_io,
  40. .init_irq = pxa27x_dt_init_irq,
  41. .handle_irq = pxa27x_handle_irq,
  42. .restart = pxa_restart,
  43. .dt_compat = pxa27x_dt_board_compat,
  44. MACHINE_END
  45. #endif