irqs.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * mach-nomadik/include/mach/irqs.h
  3. *
  4. * Copyright (C) ST Microelectronics
  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 as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #ifndef __ASM_ARCH_IRQS_H
  21. #define __ASM_ARCH_IRQS_H
  22. #include <mach/hardware.h>
  23. #define IRQ_VIC_START 1 /* first VIC interrupt is 1 */
  24. /*
  25. * Interrupt numbers generic for all Nomadik Chip cuts
  26. */
  27. #define IRQ_WATCHDOG 1
  28. #define IRQ_SOFTINT 2
  29. #define IRQ_CRYPTO 3
  30. #define IRQ_OWM 4
  31. #define IRQ_MTU0 5
  32. #define IRQ_MTU1 6
  33. #define IRQ_GPIO0 7
  34. #define IRQ_GPIO1 8
  35. #define IRQ_GPIO2 9
  36. #define IRQ_GPIO3 10
  37. #define IRQ_RTC_RTT 11
  38. #define IRQ_SSP 12
  39. #define IRQ_UART0 13
  40. #define IRQ_DMA1 14
  41. #define IRQ_CLCD_MDIF 15
  42. #define IRQ_DMA0 16
  43. #define IRQ_PWRFAIL 17
  44. #define IRQ_UART1 18
  45. #define IRQ_FIRDA 19
  46. #define IRQ_MSP0 20
  47. #define IRQ_I2C0 21
  48. #define IRQ_I2C1 22
  49. #define IRQ_SDMMC 23
  50. #define IRQ_USBOTG 24
  51. #define IRQ_SVA_IT0 25
  52. #define IRQ_SVA_IT1 26
  53. #define IRQ_SAA_IT0 27
  54. #define IRQ_SAA_IT1 28
  55. #define IRQ_UART2 29
  56. #define IRQ_MSP2 30
  57. #define IRQ_L2CC 49
  58. #define IRQ_HPI 50
  59. #define IRQ_SKE 51
  60. #define IRQ_KP 52
  61. #define IRQ_MEMST 55
  62. #define IRQ_SGA_IT 59
  63. #define IRQ_USBM 61
  64. #define IRQ_MSP1 63
  65. #define NOMADIK_GPIO_OFFSET (IRQ_VIC_START+64)
  66. /* After chip-specific IRQ numbers we have the GPIO ones */
  67. #define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */
  68. #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_GPIO_OFFSET)
  69. #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_GPIO_OFFSET)
  70. #define NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)
  71. /* Following two are used by entry_macro.S, to access our dual-vic */
  72. #define VIC_REG_IRQSR0 0
  73. #define VIC_REG_IRQSR1 0x20
  74. #endif /* __ASM_ARCH_IRQS_H */