aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-08-20 09:39:23 -0400
committerSimon Horman <horms+renesas@verge.net.au>2014-08-21 23:23:32 -0400
commit86155b35d173317518458c6f9c0a3ea8c5324bed (patch)
tree9c377370f1fe8d9457a9138de1c074dbf5a07804
parent664b4c172209f076866419a5a4162e4fc9631807 (diff)
ARM: shmobile: Move legacy INTC definitions from irqs.h to intc.h
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>
-rw-r--r--arch/arm/mach-shmobile/board-kzm9g.c1
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c1
-rw-r--r--arch/arm/mach-shmobile/intc.h5
-rw-r--r--arch/arm/mach-shmobile/irqs.h6
-rw-r--r--arch/arm/mach-shmobile/setup-sh7372.c1
-rw-r--r--arch/arm/mach-shmobile/setup-sh73a0.c1
6 files changed, 9 insertions, 6 deletions
diff --git a/arch/arm/mach-shmobile/board-kzm9g.c b/arch/arm/mach-shmobile/board-kzm9g.c
index f8bc7f8f86ad..1bcd7eb8355c 100644
--- a/arch/arm/mach-shmobile/board-kzm9g.c
+++ b/arch/arm/mach-shmobile/board-kzm9g.c
@@ -50,6 +50,7 @@
50#include <video/sh_mobile_lcdc.h> 50#include <video/sh_mobile_lcdc.h>
51 51
52#include "common.h" 52#include "common.h"
53#include "intc.h"
53#include "irqs.h" 54#include "irqs.h"
54#include "sh73a0.h" 55#include "sh73a0.h"
55 56
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 79f448e93abb..b7c4261492b0 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -63,6 +63,7 @@
63#include <asm/mach-types.h> 63#include <asm/mach-types.h>
64 64
65#include "common.h" 65#include "common.h"
66#include "intc.h"
66#include "irqs.h" 67#include "irqs.h"
67#include "pm-rmobile.h" 68#include "pm-rmobile.h"
68#include "sh-gpio.h" 69#include "sh-gpio.h"
diff --git a/arch/arm/mach-shmobile/intc.h b/arch/arm/mach-shmobile/intc.h
index a5603c76cfe0..40b2ad4ca5b4 100644
--- a/arch/arm/mach-shmobile/intc.h
+++ b/arch/arm/mach-shmobile/intc.h
@@ -287,4 +287,9 @@ static struct intc_desc p ## _desc __initdata = { \
287 p ## _sense_registers, NULL), \ 287 p ## _sense_registers, NULL), \
288} 288}
289 289
290/* INTCS */
291#define INTCS_VECT_BASE 0x3400
292#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
293#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
294
290#endif /* __ASM_MACH_INTC_H */ 295#endif /* __ASM_MACH_INTC_H */
diff --git a/arch/arm/mach-shmobile/irqs.h b/arch/arm/mach-shmobile/irqs.h
index 8e28223f1b3c..3070f6d887eb 100644
--- a/arch/arm/mach-shmobile/irqs.h
+++ b/arch/arm/mach-shmobile/irqs.h
@@ -1,18 +1,12 @@
1#ifndef __SHMOBILE_IRQS_H 1#ifndef __SHMOBILE_IRQS_H
2#define __SHMOBILE_IRQS_H 2#define __SHMOBILE_IRQS_H
3 3
4#include <linux/sh_intc.h>
5#include "include/mach/irqs.h" 4#include "include/mach/irqs.h"
6 5
7/* GIC */ 6/* GIC */
8#define gic_spi(nr) ((nr) + 32) 7#define gic_spi(nr) ((nr) + 32)
9#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */ 8#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
10 9
11/* INTCS */
12#define INTCS_VECT_BASE 0x3400
13#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
14#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
15
16/* GPIO IRQ */ 10/* GPIO IRQ */
17#define _GPIO_IRQ_BASE 2500 11#define _GPIO_IRQ_BASE 2500
18#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x)) 12#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index 3731eccccef4..eaf5d1332c4b 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -41,6 +41,7 @@
41 41
42#include "common.h" 42#include "common.h"
43#include "dma-register.h" 43#include "dma-register.h"
44#include "intc.h"
44#include "irqs.h" 45#include "irqs.h"
45#include "pm-rmobile.h" 46#include "pm-rmobile.h"
46#include "sh7372.h" 47#include "sh7372.h"
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index 8ff96799e66c..173c6784d1d4 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
@@ -40,6 +40,7 @@
40 40
41#include "common.h" 41#include "common.h"
42#include "dma-register.h" 42#include "dma-register.h"
43#include "intc.h"
43#include "irqs.h" 44#include "irqs.h"
44#include "sh73a0.h" 45#include "sh73a0.h"
45 46