Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff9170ae authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

ARM: mach-shmobile: add INTCS macros



Add SH-Mobile ARM INTCS macros for the INTCS controller.

Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8fc883c2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4,7 +4,13 @@
#define NR_IRQS         512
#define NR_IRQS_LEGACY  8

/* INTCA */
#define evt2irq(evt)		(((evt) >> 5) - 16)
#define irq2evt(irq)		(((irq) + 16) << 5)

/* INTCS */
#define INTCS_VECT_BASE		0x3400
#define INTCS_VECT(n, vect)	INTC_VECT((n), INTCS_VECT_BASE + (vect))
#define intcs_evt2irq(evt)	evt2irq(INTCS_VECT_BASE + (evt))

#endif /* __ASM_MACH_IRQS_H */