irqs.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (C) 2008 STMicroelectronics
  3. * Copyright (C) 2009 ST-Ericsson.
  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 as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. */
  10. #ifndef ASM_ARCH_IRQS_H
  11. #define ASM_ARCH_IRQS_H
  12. #include <mach/hardware.h>
  13. #define IRQ_LOCALTIMER 29
  14. #define IRQ_LOCALWDOG 30
  15. /* Shared Peripheral Interrupt (SHPI) */
  16. #define IRQ_SHPI_START 32
  17. /* Interrupt numbers generic for shared peripheral */
  18. #define IRQ_MTU0 (IRQ_SHPI_START + 4)
  19. #define IRQ_SPI2 (IRQ_SHPI_START + 6)
  20. #define IRQ_SPI0 (IRQ_SHPI_START + 8)
  21. #define IRQ_UART0 (IRQ_SHPI_START + 11)
  22. #define IRQ_I2C3 (IRQ_SHPI_START + 12)
  23. #define IRQ_SSP0 (IRQ_SHPI_START + 14)
  24. #define IRQ_MTU1 (IRQ_SHPI_START + 17)
  25. #define IRQ_RTC_RTT (IRQ_SHPI_START + 18)
  26. #define IRQ_UART1 (IRQ_SHPI_START + 19)
  27. #define IRQ_I2C0 (IRQ_SHPI_START + 21)
  28. #define IRQ_I2C1 (IRQ_SHPI_START + 22)
  29. #define IRQ_USBOTG (IRQ_SHPI_START + 23)
  30. #define IRQ_DMA (IRQ_SHPI_START + 25)
  31. #define IRQ_UART2 (IRQ_SHPI_START + 26)
  32. #define IRQ_HSIR_EXCEP (IRQ_SHPI_START + 29)
  33. #define IRQ_MSP0 (IRQ_SHPI_START + 31)
  34. #define IRQ_HSIR_CH0_OVRRUN (IRQ_SHPI_START + 32)
  35. #define IRQ_HSIR_CH1_OVRRUN (IRQ_SHPI_START + 33)
  36. #define IRQ_HSIR_CH2_OVRRUN (IRQ_SHPI_START + 34)
  37. #define IRQ_HSIR_CH3_OVRRUN (IRQ_SHPI_START + 35)
  38. #define IRQ_AB4500 (IRQ_SHPI_START + 40)
  39. #define IRQ_DISP (IRQ_SHPI_START + 48)
  40. #define IRQ_SiPI3 (IRQ_SHPI_START + 49)
  41. #define IRQ_SSP1 (IRQ_SHPI_START + 52)
  42. #define IRQ_I2C2 (IRQ_SHPI_START + 55)
  43. #define IRQ_SDMMC0 (IRQ_SHPI_START + 60)
  44. #define IRQ_MSP1 (IRQ_SHPI_START + 62)
  45. #define IRQ_SPI1 (IRQ_SHPI_START + 96)
  46. #define IRQ_MSP2 (IRQ_SHPI_START + 98)
  47. #define IRQ_SDMMC4 (IRQ_SHPI_START + 99)
  48. #define IRQ_HSIRD0 (IRQ_SHPI_START + 104)
  49. #define IRQ_HSIRD1 (IRQ_SHPI_START + 105)
  50. #define IRQ_HSITD0 (IRQ_SHPI_START + 106)
  51. #define IRQ_HSITD1 (IRQ_SHPI_START + 107)
  52. #define IRQ_GPIO0 (IRQ_SHPI_START + 119)
  53. #define IRQ_GPIO1 (IRQ_SHPI_START + 120)
  54. #define IRQ_GPIO2 (IRQ_SHPI_START + 121)
  55. #define IRQ_GPIO3 (IRQ_SHPI_START + 122)
  56. #define IRQ_GPIO4 (IRQ_SHPI_START + 123)
  57. #define IRQ_GPIO5 (IRQ_SHPI_START + 124)
  58. #define IRQ_GPIO6 (IRQ_SHPI_START + 125)
  59. #define IRQ_GPIO7 (IRQ_SHPI_START + 126)
  60. #define IRQ_GPIO8 (IRQ_SHPI_START + 127)
  61. /* There are 128 shared peripheral interrupts assigned to
  62. * INTID[160:32]. The first 32 interrupts are reserved.
  63. */
  64. #define NR_IRQS 161
  65. #endif /*ASM_ARCH_IRQS_H*/