Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 1 | #ifndef __ASM_MACH_IRQS_H |
| 2 | #define __ASM_MACH_IRQS_H |
| 3 | |
Rob Herring | 7f1e763 | 2012-01-17 11:20:23 -0600 | [diff] [blame] | 4 | #include <linux/sh_intc.h> |
| 5 | |
Magnus Damm | 6d9598e | 2010-11-17 10:59:31 +0000 | [diff] [blame] | 6 | /* GIC */ |
| 7 | #define gic_spi(nr) ((nr) + 32) |
Kuninori Morimoto | 652f945 | 2013-02-25 01:39:44 -0800 | [diff] [blame] | 8 | #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */ |
Magnus Damm | 6d9598e | 2010-11-17 10:59:31 +0000 | [diff] [blame] | 9 | |
Magnus Damm | ff9170a | 2010-03-11 05:30:30 +0000 | [diff] [blame] | 10 | /* INTCS */ |
Magnus Damm | 1ee8299 | 2012-03-28 19:22:54 +0900 | [diff] [blame] | 11 | #define INTCS_VECT_BASE 0x3400 |
Magnus Damm | ff9170a | 2010-03-11 05:30:30 +0000 | [diff] [blame] | 12 | #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) |
| 13 | #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) |
| 14 | |
Magnus Damm | 1f4f11c | 2013-02-26 12:00:59 +0900 | [diff] [blame] | 15 | /* External IRQ pins */ |
| 16 | #define IRQPIN_BASE 2000 |
| 17 | #define irq_pin(nr) ((nr) + IRQPIN_BASE) |
| 18 | |
Magnus Damm | c793c1b | 2010-02-05 11:14:49 +0000 | [diff] [blame] | 19 | #endif /* __ASM_MACH_IRQS_H */ |