regs-irq.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * arch/arm/mach-w90x900/include/mach/regs-irq.h
  3. *
  4. * Copyright (c) 2008 Nuvoton technology corporation
  5. * All rights reserved.
  6. *
  7. * Wan ZongShun <mcuos.com@gmail.com>
  8. *
  9. * Based on arch/arm/mach-s3c2410/include/mach/regs-irq.h
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. */
  17. #ifndef ___ASM_ARCH_REGS_IRQ_H
  18. #define ___ASM_ARCH_REGS_IRQ_H
  19. /* Advance Interrupt Controller (AIC) Registers */
  20. #define AIC_BA W90X900_VA_IRQ
  21. #define REG_AIC_IRQSC (AIC_BA+0x80)
  22. #define REG_AIC_GEN (AIC_BA+0x84)
  23. #define REG_AIC_GASR (AIC_BA+0x88)
  24. #define REG_AIC_GSCR (AIC_BA+0x8C)
  25. #define REG_AIC_IRSR (AIC_BA+0x100)
  26. #define REG_AIC_IASR (AIC_BA+0x104)
  27. #define REG_AIC_ISR (AIC_BA+0x108)
  28. #define REG_AIC_IPER (AIC_BA+0x10C)
  29. #define REG_AIC_ISNR (AIC_BA+0x110)
  30. #define REG_AIC_IMR (AIC_BA+0x114)
  31. #define REG_AIC_OISR (AIC_BA+0x118)
  32. #define REG_AIC_MECR (AIC_BA+0x120)
  33. #define REG_AIC_MDCR (AIC_BA+0x124)
  34. #define REG_AIC_SSCR (AIC_BA+0x128)
  35. #define REG_AIC_SCCR (AIC_BA+0x12C)
  36. #define REG_AIC_EOSCR (AIC_BA+0x130)
  37. #define AIC_IPER (0x10C)
  38. #define AIC_ISNR (0x110)
  39. /*16-18 bits of REG_AIC_GEN define irq(2-4) group*/
  40. #define TIMER2_IRQ (1 << 16)
  41. #define TIMER3_IRQ (1 << 17)
  42. #define TIMER4_IRQ (1 << 18)
  43. #define TIME_GROUP_IRQ (TIMER2_IRQ|TIMER3_IRQ|TIMER4_IRQ)
  44. #endif /* ___ASM_ARCH_REGS_IRQ_H */