aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-08-20 04:47:41 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-10-12 16:14:49 -0400
commite259a3aecbfb61981175ddc7fc02dd180da7d73e (patch)
treefb265b5c377f2e82b3cf8d3b0805ff9ba17df891 /arch
parent08197f6e3b262f4fb8b164c818d5e54b46c14711 (diff)
[ARM] pxa: convert PXA serial drivers to use platform resources
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/generic.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c
index 9d6a2c00d762..98df63898d1d 100644
--- a/arch/arm/mach-pxa/generic.c
+++ b/arch/arm/mach-pxa/generic.c
@@ -267,21 +267,80 @@ void __init set_pxa_fb_parent(struct device *parent_dev)
267 pxa_device_fb.dev.parent = parent_dev; 267 pxa_device_fb.dev.parent = parent_dev;
268} 268}
269 269
270static struct resource pxa_resource_ffuart[] = {
271 {
272 .start = __PREG(FFUART),
273 .end = __PREG(FFUART) + 35,
274 .flags = IORESOURCE_MEM,
275 }, {
276 .start = IRQ_FFUART,
277 .end = IRQ_FFUART,
278 .flags = IORESOURCE_IRQ,
279 }
280};
281
270struct platform_device pxa_device_ffuart= { 282struct platform_device pxa_device_ffuart= {
271 .name = "pxa2xx-uart", 283 .name = "pxa2xx-uart",
272 .id = 0, 284 .id = 0,
285 .resource = pxa_resource_ffuart,
286 .num_resources = ARRAY_SIZE(pxa_resource_ffuart),
287};
288
289static struct resource pxa_resource_btuart[] = {
290 {
291 .start = __PREG(BTUART),
292 .end = __PREG(BTUART) + 35,
293 .flags = IORESOURCE_MEM,
294 }, {
295 .start = IRQ_BTUART,
296 .end = IRQ_BTUART,
297 .flags = IORESOURCE_IRQ,
298 }
273}; 299};
300
274struct platform_device pxa_device_btuart = { 301struct platform_device pxa_device_btuart = {
275 .name = "pxa2xx-uart", 302 .name = "pxa2xx-uart",
276 .id = 1, 303 .id = 1,
304 .resource = pxa_resource_btuart,
305 .num_resources = ARRAY_SIZE(pxa_resource_btuart),
277}; 306};
307
308static struct resource pxa_resource_stuart[] = {
309 {
310 .start = __PREG(STUART),
311 .end = __PREG(STUART) + 35,
312 .flags = IORESOURCE_MEM,
313 }, {
314 .start = IRQ_STUART,
315 .end = IRQ_STUART,
316 .flags = IORESOURCE_IRQ,
317 }
318};
319
278struct platform_device pxa_device_stuart = { 320struct platform_device pxa_device_stuart = {
279 .name = "pxa2xx-uart", 321 .name = "pxa2xx-uart",
280 .id = 2, 322 .id = 2,
323 .resource = pxa_resource_stuart,
324 .num_resources = ARRAY_SIZE(pxa_resource_stuart),
281}; 325};
326
327static struct resource pxa_resource_hwuart[] = {
328 {
329 .start = __PREG(HWUART),
330 .end = __PREG(HWUART) + 47,
331 .flags = IORESOURCE_MEM,
332 }, {
333 .start = IRQ_HWUART,
334 .end = IRQ_HWUART,
335 .flags = IORESOURCE_IRQ,
336 }
337};
338
282struct platform_device pxa_device_hwuart = { 339struct platform_device pxa_device_hwuart = {
283 .name = "pxa2xx-uart", 340 .name = "pxa2xx-uart",
284 .id = 3, 341 .id = 3,
342 .resource = pxa_resource_hwuart,
343 .num_resources = ARRAY_SIZE(pxa_resource_hwuart),
285}; 344};
286 345
287static struct resource pxai2c_resources[] = { 346static struct resource pxai2c_resources[] = {