aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-05-20 10:41:00 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-22 04:22:56 -0400
commit33c9607acf159da986c85983e1b58b739bcb46c2 (patch)
treeb83d6f9ce0b9bb2eb2e51437da745b77e4dbdfd3 /arch/arm/mach-shmobile
parent043296dd430c26cab042dd75341f458c92d824b9 (diff)
ARM: mach-shmobile: sh7372/AP4EVB evt2irq() update
This patch updates the irq numbers on sh7372/AP4EVB to make use of evt2irq() and intcs_evt2irq(). Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c11
-rw-r--r--arch/arm/mach-shmobile/setup-sh7372.c39
2 files changed, 31 insertions, 19 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 4d197e36270a..5342306cd391 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -165,7 +165,7 @@ static struct resource smc911x_resources[] = {
165 .end = 0x16000000 - 1, 165 .end = 0x16000000 - 1,
166 .flags = IORESOURCE_MEM, 166 .flags = IORESOURCE_MEM,
167 }, { 167 }, {
168 .start = 6, 168 .start = evt2irq(0x02c0) /* IRQ6A */,
169 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, 169 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
170 }, 170 },
171}; 171};
@@ -208,7 +208,7 @@ static struct resource keysc_resources[] = {
208 .flags = IORESOURCE_MEM, 208 .flags = IORESOURCE_MEM,
209 }, 209 },
210 [1] = { 210 [1] = {
211 .start = 79, 211 .start = evt2irq(0x0be0), /* KEYSC_KEY */
212 .flags = IORESOURCE_IRQ, 212 .flags = IORESOURCE_IRQ,
213 }, 213 },
214}; 214};
@@ -232,7 +232,7 @@ static struct resource sdhi0_resources[] = {
232 .flags = IORESOURCE_MEM, 232 .flags = IORESOURCE_MEM,
233 }, 233 },
234 [1] = { 234 [1] = {
235 .start = 96, 235 .start = evt2irq(0x0e00) /* SDHI0 */,
236 .flags = IORESOURCE_IRQ, 236 .flags = IORESOURCE_IRQ,
237 }, 237 },
238}; 238};
@@ -267,8 +267,7 @@ static struct resource usb1_host_resources[] = {
267 .flags = IORESOURCE_MEM, 267 .flags = IORESOURCE_MEM,
268 }, 268 },
269 [1] = { 269 [1] = {
270 .start = 215, 270 .start = evt2irq(0x1ce0) /* USB1_USB1I0 */,
271 .end = 215,
272 .flags = IORESOURCE_IRQ, 271 .flags = IORESOURCE_IRQ,
273 }, 272 },
274}; 273};
@@ -294,7 +293,7 @@ static struct platform_device *ap4evb_devices[] __initdata = {
294}; 293};
295 294
296/* TouchScreen (Needs SW3 set to OFF) */ 295/* TouchScreen (Needs SW3 set to OFF) */
297#define IRQ28 396 296#define IRQ28 evt2irq(0x3380) /* IRQ28A */
298struct tsc2007_platform_data tsc2007_info = { 297struct tsc2007_platform_data tsc2007_info = {
299 .model = 2007, 298 .model = 2007,
300 .x_plate_ohms = 180, 299 .x_plate_ohms = 180,
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c
index 885dfaa54c2a..d6b15648d8b0 100644
--- a/arch/arm/mach-shmobile/setup-sh7372.c
+++ b/arch/arm/mach-shmobile/setup-sh7372.c
@@ -32,12 +32,13 @@
32#include <asm/mach-types.h> 32#include <asm/mach-types.h>
33#include <asm/mach/arch.h> 33#include <asm/mach/arch.h>
34 34
35/* SCIF */ 35/* SCIFA0 */
36static struct plat_sci_port scif0_platform_data = { 36static struct plat_sci_port scif0_platform_data = {
37 .mapbase = 0xe6c40000, 37 .mapbase = 0xe6c40000,
38 .flags = UPF_BOOT_AUTOCONF, 38 .flags = UPF_BOOT_AUTOCONF,
39 .type = PORT_SCIF, 39 .type = PORT_SCIF,
40 .irqs = { 80, 80, 80, 80 }, 40 .irqs = { evt2irq(0x0c00), evt2irq(0x0c00),
41 evt2irq(0x0c00), evt2irq(0x0c00) },
41}; 42};
42 43
43static struct platform_device scif0_device = { 44static struct platform_device scif0_device = {
@@ -48,11 +49,13 @@ static struct platform_device scif0_device = {
48 }, 49 },
49}; 50};
50 51
52/* SCIFA1 */
51static struct plat_sci_port scif1_platform_data = { 53static struct plat_sci_port scif1_platform_data = {
52 .mapbase = 0xe6c50000, 54 .mapbase = 0xe6c50000,
53 .flags = UPF_BOOT_AUTOCONF, 55 .flags = UPF_BOOT_AUTOCONF,
54 .type = PORT_SCIF, 56 .type = PORT_SCIF,
55 .irqs = { 81, 81, 81, 81 }, 57 .irqs = { evt2irq(0x0c20), evt2irq(0x0c20),
58 evt2irq(0x0c20), evt2irq(0x0c20) },
56}; 59};
57 60
58static struct platform_device scif1_device = { 61static struct platform_device scif1_device = {
@@ -63,11 +66,13 @@ static struct platform_device scif1_device = {
63 }, 66 },
64}; 67};
65 68
69/* SCIFA2 */
66static struct plat_sci_port scif2_platform_data = { 70static struct plat_sci_port scif2_platform_data = {
67 .mapbase = 0xe6c60000, 71 .mapbase = 0xe6c60000,
68 .flags = UPF_BOOT_AUTOCONF, 72 .flags = UPF_BOOT_AUTOCONF,
69 .type = PORT_SCIF, 73 .type = PORT_SCIF,
70 .irqs = { 82, 82, 82, 82 }, 74 .irqs = { evt2irq(0x0c40), evt2irq(0x0c40),
75 evt2irq(0x0c40), evt2irq(0x0c40) },
71}; 76};
72 77
73static struct platform_device scif2_device = { 78static struct platform_device scif2_device = {
@@ -78,11 +83,13 @@ static struct platform_device scif2_device = {
78 }, 83 },
79}; 84};
80 85
86/* SCIFA3 */
81static struct plat_sci_port scif3_platform_data = { 87static struct plat_sci_port scif3_platform_data = {
82 .mapbase = 0xe6c70000, 88 .mapbase = 0xe6c70000,
83 .flags = UPF_BOOT_AUTOCONF, 89 .flags = UPF_BOOT_AUTOCONF,
84 .type = PORT_SCIF, 90 .type = PORT_SCIF,
85 .irqs = { 83, 83, 83, 83 }, 91 .irqs = { evt2irq(0x0c60), evt2irq(0x0c60),
92 evt2irq(0x0c60), evt2irq(0x0c60) },
86}; 93};
87 94
88static struct platform_device scif3_device = { 95static struct platform_device scif3_device = {
@@ -93,11 +100,13 @@ static struct platform_device scif3_device = {
93 }, 100 },
94}; 101};
95 102
103/* SCIFA4 */
96static struct plat_sci_port scif4_platform_data = { 104static struct plat_sci_port scif4_platform_data = {
97 .mapbase = 0xe6c80000, 105 .mapbase = 0xe6c80000,
98 .flags = UPF_BOOT_AUTOCONF, 106 .flags = UPF_BOOT_AUTOCONF,
99 .type = PORT_SCIF, 107 .type = PORT_SCIF,
100 .irqs = { 89, 89, 89, 89 }, 108 .irqs = { evt2irq(0x0d20), evt2irq(0x0d20),
109 evt2irq(0x0d20), evt2irq(0x0d20) },
101}; 110};
102 111
103static struct platform_device scif4_device = { 112static struct platform_device scif4_device = {
@@ -108,11 +117,13 @@ static struct platform_device scif4_device = {
108 }, 117 },
109}; 118};
110 119
120/* SCIFA5 */
111static struct plat_sci_port scif5_platform_data = { 121static struct plat_sci_port scif5_platform_data = {
112 .mapbase = 0xe6cb0000, 122 .mapbase = 0xe6cb0000,
113 .flags = UPF_BOOT_AUTOCONF, 123 .flags = UPF_BOOT_AUTOCONF,
114 .type = PORT_SCIF, 124 .type = PORT_SCIF,
115 .irqs = { 90, 90, 90, 90 }, 125 .irqs = { evt2irq(0x0d40), evt2irq(0x0d40),
126 evt2irq(0x0d40), evt2irq(0x0d40) },
116}; 127};
117 128
118static struct platform_device scif5_device = { 129static struct platform_device scif5_device = {
@@ -123,11 +134,13 @@ static struct platform_device scif5_device = {
123 }, 134 },
124}; 135};
125 136
137/* SCIFB */
126static struct plat_sci_port scif6_platform_data = { 138static struct plat_sci_port scif6_platform_data = {
127 .mapbase = 0xe6c30000, 139 .mapbase = 0xe6c30000,
128 .flags = UPF_BOOT_AUTOCONF, 140 .flags = UPF_BOOT_AUTOCONF,
129 .type = PORT_SCIF, 141 .type = PORT_SCIF,
130 .irqs = { 91, 91, 91, 91 }, 142 .irqs = { evt2irq(0x0d60), evt2irq(0x0d60),
143 evt2irq(0x0d60), evt2irq(0x0d60) },
131}; 144};
132 145
133static struct platform_device scif6_device = { 146static struct platform_device scif6_device = {
@@ -156,7 +169,7 @@ static struct resource cmt10_resources[] = {
156 .flags = IORESOURCE_MEM, 169 .flags = IORESOURCE_MEM,
157 }, 170 },
158 [1] = { 171 [1] = {
159 .start = 72, 172 .start = evt2irq(0x0b00), /* CMT1_CMT10 */
160 .flags = IORESOURCE_IRQ, 173 .flags = IORESOURCE_IRQ,
161 }, 174 },
162}; 175};
@@ -180,8 +193,8 @@ static struct resource iic0_resources[] = {
180 .flags = IORESOURCE_MEM, 193 .flags = IORESOURCE_MEM,
181 }, 194 },
182 [1] = { 195 [1] = {
183 .start = intcs_evt2irq(0xe00), 196 .start = intcs_evt2irq(0xe00), /* IIC0_ALI0 */
184 .end = intcs_evt2irq(0xe60), 197 .end = intcs_evt2irq(0xe60), /* IIC0_DTEI0 */
185 .flags = IORESOURCE_IRQ, 198 .flags = IORESOURCE_IRQ,
186 }, 199 },
187}; 200};
@@ -201,8 +214,8 @@ static struct resource iic1_resources[] = {
201 .flags = IORESOURCE_MEM, 214 .flags = IORESOURCE_MEM,
202 }, 215 },
203 [1] = { 216 [1] = {
204 .start = 44, 217 .start = evt2irq(0x780), /* IIC1_ALI1 */
205 .end = 47, 218 .end = evt2irq(0x7e0), /* IIC1_DTEI1 */
206 .flags = IORESOURCE_IRQ, 219 .flags = IORESOURCE_IRQ,
207 }, 220 },
208}; 221};