Go to the documentation of this file.
10 #ifndef __ASM_ARCH_IRQS_H
11 #define __ASM_ARCH_IRQS_H
13 #if defined (CONFIG_CPU_H7201)
23 #define IRQ_KEYBOARD 8
40 #define NR_GLBL_IRQS 24
42 #define IRQ_CHAINED_GPIOA(x) (NR_GLBL_IRQS + x)
43 #define IRQ_CHAINED_GPIOB(x) (IRQ_CHAINED_GPIOA(32) + x)
44 #define IRQ_CHAINED_GPIOC(x) (IRQ_CHAINED_GPIOB(32) + x)
45 #define IRQ_CHAINED_GPIOD(x) (IRQ_CHAINED_GPIOC(32) + x)
46 #define NR_IRQS IRQ_CHAINED_GPIOD(32)
49 #define IRQ_ENA_MUX (1<<IRQ_GPIOA) | (1<<IRQ_GPIOB) \
50 | (1<<IRQ_GPIOC) | (1<<IRQ_GPIOD)
53 #elif defined (CONFIG_CPU_H7202)
86 #define IRQ_RESERVED1 31
87 #define NR_GLBL_IRQS 32
89 #define NR_TIMERX_IRQS 3
91 #define IRQ_CHAINED_GPIOA(x) (NR_GLBL_IRQS + x)
92 #define IRQ_CHAINED_GPIOB(x) (IRQ_CHAINED_GPIOA(32) + x)
93 #define IRQ_CHAINED_GPIOC(x) (IRQ_CHAINED_GPIOB(32) + x)
94 #define IRQ_CHAINED_GPIOD(x) (IRQ_CHAINED_GPIOC(32) + x)
95 #define IRQ_CHAINED_GPIOE(x) (IRQ_CHAINED_GPIOD(32) + x)
96 #define IRQ_CHAINED_TIMERX(x) (IRQ_CHAINED_GPIOE(32) + x)
97 #define IRQ_TIMER1 (IRQ_CHAINED_TIMERX(0))
98 #define IRQ_TIMER2 (IRQ_CHAINED_TIMERX(1))
99 #define IRQ_TIMER64B (IRQ_CHAINED_TIMERX(2))
101 #define NR_IRQS (IRQ_CHAINED_TIMERX(NR_TIMERX_IRQS))
104 #define IRQ_ENA_MUX (1<<IRQ_TIMERX) | (1<<IRQ_GPIOA) | (1<<IRQ_GPIOB) | \
105 (1<<IRQ_GPIOC) | (1<<IRQ_GPIOD) | (1<<IRQ_GPIOE) | \
109 #error cpu definition mismatch
113 #define IRQ_TO_REGNO(irq) ((irq - NR_GLBL_IRQS) >> 5)
114 #define IRQ_TO_BIT(irq) (1 << ((irq - NR_GLBL_IRQS) % 32))