irqs.h 368 B

123456789101112131415
  1. #ifndef __SHMOBILE_IRQS_H
  2. #define __SHMOBILE_IRQS_H
  3. #include "include/mach/irqs.h"
  4. /* GIC */
  5. #define gic_spi(nr) ((nr) + 32)
  6. #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
  7. /* GPIO IRQ */
  8. #define _GPIO_IRQ_BASE 2500
  9. #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
  10. #define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
  11. #endif /* __SHMOBILE_IRQS_H */