]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/mach-renesas/include/mach/irqs.h
ARM: renesas: Rename arch-/mach-rmobile to arch-/mach-renesas
[thirdparty/u-boot.git] / arch / arm / mach-renesas / include / mach / irqs.h
CommitLineData
cfa291b7
NI
1#ifndef __ASM_MACH_IRQS_H
2#define __ASM_MACH_IRQS_H
3
4#define NR_IRQS 1024
5
6/* GIC */
7#define gic_spi(nr) ((nr) + 32)
8
9/* INTCA */
10#define evt2irq(evt) (((evt) >> 5) - 16)
11#define irq2evt(irq) (((irq) + 16) << 5)
12
13/* INTCS */
14#define INTCS_VECT_BASE 0x2200
15#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
16#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
17
18#endif /* __ASM_MACH_IRQS_H */