swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8 authored by Linus Torvalds on 30 November 2015, 02:58:26 UTC
Linux 4.4-rc3
Tip revision: 31ade3b
irqs.h
#ifndef __SHMOBILE_IRQS_H
#define __SHMOBILE_IRQS_H

#include "include/mach/irqs.h"

/* 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 */
back to top