mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
![Geert Uytterhoeven](/assets/img/avatar_default.png)
Move all definitions for legacy INTC from the common "irqs.h" to the INTC-specific "intc.h". Include "intc.h" in sh7372/sh73a0 CPU and board files where needed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Magnus Damm <damm+renesas@opensource.se> [horms+renesas@verge.net.au: omitted whitespace change] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
15 lines
368 B
C
15 lines
368 B
C
#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 */
|