blob: 3070f6d887ebdf52b3cd7d7162fc1f53947b1b66 [file] [log] [blame]
Magnus Dammb6bab122014-06-17 16:47:29 +09001#ifndef __SHMOBILE_IRQS_H
2#define __SHMOBILE_IRQS_H
3
Magnus Dammf2acab52014-07-31 09:25:15 +09004#include "include/mach/irqs.h"
Magnus Dammb6bab122014-06-17 16:47:29 +09005
6/* GIC */
7#define gic_spi(nr) ((nr) + 32)
8#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
9
Magnus Dammb6bab122014-06-17 16:47:29 +090010/* GPIO IRQ */
11#define _GPIO_IRQ_BASE 2500
12#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
13#define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
14
15#endif /* __SHMOBILE_IRQS_H */