2010-02-05 11:14:49 +00:00
|
|
|
#ifndef __ASM_MACH_IRQS_H
|
|
|
|
#define __ASM_MACH_IRQS_H
|
|
|
|
|
2012-01-17 17:20:23 +00:00
|
|
|
#include <linux/sh_intc.h>
|
|
|
|
|
2010-11-17 10:59:31 +00:00
|
|
|
/* GIC */
|
|
|
|
#define gic_spi(nr) ((nr) + 32)
|
2013-02-25 09:39:44 +00:00
|
|
|
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
|
2010-11-17 10:59:31 +00:00
|
|
|
|
2010-03-11 05:30:30 +00:00
|
|
|
/* INTCS */
|
2012-03-28 10:22:54 +00:00
|
|
|
#define INTCS_VECT_BASE 0x3400
|
2010-03-11 05:30:30 +00:00
|
|
|
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
|
|
|
|
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
|
|
|
|
|
2013-02-26 03:00:59 +00:00
|
|
|
/* External IRQ pins */
|
|
|
|
#define IRQPIN_BASE 2000
|
|
|
|
#define irq_pin(nr) ((nr) + IRQPIN_BASE)
|
|
|
|
|
2013-04-18 06:41:30 +00:00
|
|
|
/* GPIO IRQ */
|
|
|
|
#define _GPIO_IRQ_BASE 2500
|
|
|
|
#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
|
|
|
|
#define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
|
|
|
|
|
2010-02-05 11:14:49 +00:00
|
|
|
#endif /* __ASM_MACH_IRQS_H */
|