blob: b2074e2acb15f2641f5b92fc65fad9ff619c54cb [file] [log] [blame]
Magnus Dammc793c1b2010-02-05 11:14:49 +00001#ifndef __ASM_MACH_IRQS_H
2#define __ASM_MACH_IRQS_H
3
Rob Herring7f1e7632012-01-17 11:20:23 -06004#include <linux/sh_intc.h>
5
Magnus Damm6d9598e2010-11-17 10:59:31 +00006/* GIC */
7#define gic_spi(nr) ((nr) + 32)
Kuninori Morimoto652f9452013-02-25 01:39:44 -08008#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
Magnus Damm6d9598e2010-11-17 10:59:31 +00009
Magnus Dammff9170a2010-03-11 05:30:30 +000010/* INTCS */
Magnus Damm1ee82992012-03-28 19:22:54 +090011#define INTCS_VECT_BASE 0x3400
Magnus Dammff9170a2010-03-11 05:30:30 +000012#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
13#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
14
Magnus Damm1f4f11c2013-02-26 12:00:59 +090015/* External IRQ pins */
16#define IRQPIN_BASE 2000
17#define irq_pin(nr) ((nr) + IRQPIN_BASE)
18
Magnus Dammc793c1b2010-02-05 11:14:49 +000019#endif /* __ASM_MACH_IRQS_H */