irqs.h 799 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * IRQ helper macros for spear machine family
  3. *
  4. * Copyright (C) 2009-2012 ST Microelectronics
  5. * Rajeev Kumar <rajeev-dlh.kumar@st.com>
  6. * Viresh Kumar <vireshk@kernel.org>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. #ifndef __MACH_IRQS_H
  13. #define __MACH_IRQS_H
  14. #ifdef CONFIG_ARCH_SPEAR3XX
  15. #define NR_IRQS 256
  16. #endif
  17. #ifdef CONFIG_ARCH_SPEAR6XX
  18. /* IRQ definitions */
  19. /* VIC 1 */
  20. #define IRQ_VIC_END 64
  21. /* GPIO pins virtual irqs */
  22. #define VIRTUAL_IRQS 24
  23. #define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS)
  24. #endif
  25. #ifdef CONFIG_ARCH_SPEAR13XX
  26. #define IRQ_GIC_END 160
  27. #define NR_IRQS IRQ_GIC_END
  28. #endif
  29. #endif /* __MACH_IRQS_H */