diff options
author | Magnus Damm <damm@opensource.se> | 2010-05-20 10:41:00 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-22 04:22:56 -0400 |
commit | 33c9607acf159da986c85983e1b58b739bcb46c2 (patch) | |
tree | b83d6f9ce0b9bb2eb2e51437da745b77e4dbdfd3 /arch/arm/mach-shmobile/setup-sh7372.c | |
parent | 043296dd430c26cab042dd75341f458c92d824b9 (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/setup-sh7372.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 39 |
1 files changed, 26 insertions, 13 deletions
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 */ |
36 | static struct plat_sci_port scif0_platform_data = { | 36 | static 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 | ||
43 | static struct platform_device scif0_device = { | 44 | static struct platform_device scif0_device = { |
@@ -48,11 +49,13 @@ static struct platform_device scif0_device = { | |||
48 | }, | 49 | }, |
49 | }; | 50 | }; |
50 | 51 | ||
52 | /* SCIFA1 */ | ||
51 | static struct plat_sci_port scif1_platform_data = { | 53 | static 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 | ||
58 | static struct platform_device scif1_device = { | 61 | static struct platform_device scif1_device = { |
@@ -63,11 +66,13 @@ static struct platform_device scif1_device = { | |||
63 | }, | 66 | }, |
64 | }; | 67 | }; |
65 | 68 | ||
69 | /* SCIFA2 */ | ||
66 | static struct plat_sci_port scif2_platform_data = { | 70 | static 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 | ||
73 | static struct platform_device scif2_device = { | 78 | static struct platform_device scif2_device = { |
@@ -78,11 +83,13 @@ static struct platform_device scif2_device = { | |||
78 | }, | 83 | }, |
79 | }; | 84 | }; |
80 | 85 | ||
86 | /* SCIFA3 */ | ||
81 | static struct plat_sci_port scif3_platform_data = { | 87 | static 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 | ||
88 | static struct platform_device scif3_device = { | 95 | static struct platform_device scif3_device = { |
@@ -93,11 +100,13 @@ static struct platform_device scif3_device = { | |||
93 | }, | 100 | }, |
94 | }; | 101 | }; |
95 | 102 | ||
103 | /* SCIFA4 */ | ||
96 | static struct plat_sci_port scif4_platform_data = { | 104 | static 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 | ||
103 | static struct platform_device scif4_device = { | 112 | static struct platform_device scif4_device = { |
@@ -108,11 +117,13 @@ static struct platform_device scif4_device = { | |||
108 | }, | 117 | }, |
109 | }; | 118 | }; |
110 | 119 | ||
120 | /* SCIFA5 */ | ||
111 | static struct plat_sci_port scif5_platform_data = { | 121 | static 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 | ||
118 | static struct platform_device scif5_device = { | 129 | static struct platform_device scif5_device = { |
@@ -123,11 +134,13 @@ static struct platform_device scif5_device = { | |||
123 | }, | 134 | }, |
124 | }; | 135 | }; |
125 | 136 | ||
137 | /* SCIFB */ | ||
126 | static struct plat_sci_port scif6_platform_data = { | 138 | static 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 | ||
133 | static struct platform_device scif6_device = { | 146 | static 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 | }; |