diff options
author | Jochen Friedrich <jochen@scram.de> | 2011-01-03 06:19:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-03 17:57:11 -0500 |
commit | cf562b4a550b3cd9d602a05bc27aaaaa376947b4 (patch) | |
tree | 38a592b3f5895dd72fbb5dd0d03d401416bfc7d7 /arch/arm/mach-sa1100/generic.c | |
parent | 4f444e2b59dd4255d121b57ec41a4a8c5d6bce46 (diff) |
ARM: 6607/1: sa1100: Update platform device registration
Replace some magic numbers with constants and add interrupt definitions.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100/generic.c')
-rw-r--r-- | arch/arm/mach-sa1100/generic.c | 41 |
1 files changed, 33 insertions, 8 deletions
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 3c1fcd696714..3555d616774c 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c | |||
@@ -163,10 +163,15 @@ static void sa11x0_register_device(struct platform_device *dev, void *data) | |||
163 | 163 | ||
164 | static struct resource sa11x0udc_resources[] = { | 164 | static struct resource sa11x0udc_resources[] = { |
165 | [0] = { | 165 | [0] = { |
166 | .start = 0x80000000, | 166 | .start = __PREG(Ser0UDCCR), |
167 | .end = 0x8000ffff, | 167 | .end = __PREG(Ser0UDCCR) + 0xffff, |
168 | .flags = IORESOURCE_MEM, | 168 | .flags = IORESOURCE_MEM, |
169 | }, | 169 | }, |
170 | [1] = { | ||
171 | .start = IRQ_Ser0UDC, | ||
172 | .end = IRQ_Ser0UDC, | ||
173 | .flags = IORESOURCE_IRQ, | ||
174 | }, | ||
170 | }; | 175 | }; |
171 | 176 | ||
172 | static u64 sa11x0udc_dma_mask = 0xffffffffUL; | 177 | static u64 sa11x0udc_dma_mask = 0xffffffffUL; |
@@ -184,10 +189,15 @@ static struct platform_device sa11x0udc_device = { | |||
184 | 189 | ||
185 | static struct resource sa11x0uart1_resources[] = { | 190 | static struct resource sa11x0uart1_resources[] = { |
186 | [0] = { | 191 | [0] = { |
187 | .start = 0x80010000, | 192 | .start = __PREG(Ser1UTCR0), |
188 | .end = 0x8001ffff, | 193 | .end = __PREG(Ser1UTCR0) + 0xffff, |
189 | .flags = IORESOURCE_MEM, | 194 | .flags = IORESOURCE_MEM, |
190 | }, | 195 | }, |
196 | [1] = { | ||
197 | .start = IRQ_Ser1UART, | ||
198 | .end = IRQ_Ser1UART, | ||
199 | .flags = IORESOURCE_IRQ, | ||
200 | }, | ||
191 | }; | 201 | }; |
192 | 202 | ||
193 | static struct platform_device sa11x0uart1_device = { | 203 | static struct platform_device sa11x0uart1_device = { |
@@ -199,10 +209,15 @@ static struct platform_device sa11x0uart1_device = { | |||
199 | 209 | ||
200 | static struct resource sa11x0uart3_resources[] = { | 210 | static struct resource sa11x0uart3_resources[] = { |
201 | [0] = { | 211 | [0] = { |
202 | .start = 0x80050000, | 212 | .start = __PREG(Ser3UTCR0), |
203 | .end = 0x8005ffff, | 213 | .end = __PREG(Ser3UTCR0) + 0xffff, |
204 | .flags = IORESOURCE_MEM, | 214 | .flags = IORESOURCE_MEM, |
205 | }, | 215 | }, |
216 | [1] = { | ||
217 | .start = IRQ_Ser3UART, | ||
218 | .end = IRQ_Ser3UART, | ||
219 | .flags = IORESOURCE_IRQ, | ||
220 | }, | ||
206 | }; | 221 | }; |
207 | 222 | ||
208 | static struct platform_device sa11x0uart3_device = { | 223 | static struct platform_device sa11x0uart3_device = { |
@@ -214,10 +229,15 @@ static struct platform_device sa11x0uart3_device = { | |||
214 | 229 | ||
215 | static struct resource sa11x0mcp_resources[] = { | 230 | static struct resource sa11x0mcp_resources[] = { |
216 | [0] = { | 231 | [0] = { |
217 | .start = 0x80060000, | 232 | .start = __PREG(Ser4MCCR0), |
218 | .end = 0x8006ffff, | 233 | .end = __PREG(Ser4MCCR0) + 0xffff, |
219 | .flags = IORESOURCE_MEM, | 234 | .flags = IORESOURCE_MEM, |
220 | }, | 235 | }, |
236 | [1] = { | ||
237 | .start = IRQ_Ser4MCP, | ||
238 | .end = IRQ_Ser4MCP, | ||
239 | .flags = IORESOURCE_IRQ, | ||
240 | }, | ||
221 | }; | 241 | }; |
222 | 242 | ||
223 | static u64 sa11x0mcp_dma_mask = 0xffffffffUL; | 243 | static u64 sa11x0mcp_dma_mask = 0xffffffffUL; |
@@ -244,6 +264,11 @@ static struct resource sa11x0ssp_resources[] = { | |||
244 | .end = 0x8007ffff, | 264 | .end = 0x8007ffff, |
245 | .flags = IORESOURCE_MEM, | 265 | .flags = IORESOURCE_MEM, |
246 | }, | 266 | }, |
267 | [1] = { | ||
268 | .start = IRQ_Ser4SSP, | ||
269 | .end = IRQ_Ser4SSP, | ||
270 | .flags = IORESOURCE_IRQ, | ||
271 | }, | ||
247 | }; | 272 | }; |
248 | 273 | ||
249 | static u64 sa11x0ssp_dma_mask = 0xffffffffUL; | 274 | static u64 sa11x0ssp_dma_mask = 0xffffffffUL; |