irqs.h 894 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
  3. */
  4. /*
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __MACH_MXS_IRQS_H__
  10. #define __MACH_MXS_IRQS_H__
  11. #define MXS_INTERNAL_IRQS 128
  12. #define MXS_GPIO_IRQ_START MXS_INTERNAL_IRQS
  13. /* the maximum for MXS-based */
  14. #define MXS_GPIO_IRQS (32 * 5)
  15. /*
  16. * The next 16 interrupts are for board specific purposes. Since
  17. * the kernel can only run on one machine at a time, we can re-use
  18. * these. If you need more, increase MXS_BOARD_IRQS, but keep it
  19. * within sensible limits.
  20. */
  21. #define MXS_BOARD_IRQ_START (MXS_GPIO_IRQ_START + MXS_GPIO_IRQS)
  22. #define MXS_BOARD_IRQS 16
  23. #define NR_IRQS (MXS_BOARD_IRQ_START + MXS_BOARD_IRQS)
  24. #endif /* __MACH_MXS_IRQS_H__ */