2014-06-17 15:47:29 +08:00
|
|
|
#ifndef __SHMOBILE_IRQS_H
|
|
|
|
#define __SHMOBILE_IRQS_H
|
|
|
|
|
2014-07-31 08:25:15 +08:00
|
|
|
#include "include/mach/irqs.h"
|
2014-06-17 15:47:29 +08:00
|
|
|
|
|
|
|
/* GIC */
|
|
|
|
#define gic_spi(nr) ((nr) + 32)
|
|
|
|
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
|
|
|
|
|
|
|
|
/* 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)
|
|
|
|
|
|
|
|
#endif /* __SHMOBILE_IRQS_H */
|