mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
f2acab52e7
Now when the majority of the include files have moved from arch/arm/mach-shmobile/include/mach/ to arch/arm/mach-shmobile/ remove the header include file workaround in the Makefile... ... and add another workaround in irqs.h to cope with the fact that <mach/irqs.h> needs to be where it is until the PFC code has been updated to remove legacy non-DT interfaces. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
22 lines
569 B
C
22 lines
569 B
C
#ifndef __SHMOBILE_IRQS_H
|
|
#define __SHMOBILE_IRQS_H
|
|
|
|
#include <linux/sh_intc.h>
|
|
#include "include/mach/irqs.h"
|
|
|
|
/* GIC */
|
|
#define gic_spi(nr) ((nr) + 32)
|
|
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
|
|
|
|
/* INTCS */
|
|
#define INTCS_VECT_BASE 0x3400
|
|
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
|
|
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
|
|
|
|
/* 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 */
|