diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 19:08:50 -0400 |
commit | 65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (patch) | |
tree | 344e03a5039a44982c1b78d6113633b21b434820 /arch/arm/mach-footbridge/isa.c | |
parent | 541010e4b8921cd781ff02ae68028501457045b6 (diff) | |
parent | 0181b61a988424b5cc44fe09e6968142359c815e (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
[ARM] 4578/1: CM-x270: PCMCIA support
[ARM] 4577/1: ITE 8152 PCI bridge support
[ARM] 4576/1: CM-X270 machine support
[ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
[ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
[ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
[ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
[ARM] pxa: PXA3xx base support
[NET] smc91x: fix PXA DMA support code
[SERIAL] Fix console initialisation ordering
[ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
[ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
[ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
[ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
[ARM] Rename consistent_sync() as dma_cache_maint()
[ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
[ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
[ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
[ARM] 4594/1: ns9xxx: use the new gpio functions
[ARM] 4593/1: ns9xxx: implement generic clockevents
...
Diffstat (limited to 'arch/arm/mach-footbridge/isa.c')
-rw-r--r-- | arch/arm/mach-footbridge/isa.c | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/arch/arm/mach-footbridge/isa.c b/arch/arm/mach-footbridge/isa.c index 28846c7edaaf..725a219d0ed5 100644 --- a/arch/arm/mach-footbridge/isa.c +++ b/arch/arm/mach-footbridge/isa.c | |||
@@ -12,6 +12,39 @@ | |||
12 | 12 | ||
13 | #include <asm/irq.h> | 13 | #include <asm/irq.h> |
14 | 14 | ||
15 | static struct resource rtc_resources[] = { | ||
16 | [0] = { | ||
17 | .start = 0x70, | ||
18 | .end = 0x73, | ||
19 | .flags = IORESOURCE_IO, | ||
20 | }, | ||
21 | [1] = { | ||
22 | .start = IRQ_ISA_RTC_ALARM, | ||
23 | .end = IRQ_ISA_RTC_ALARM, | ||
24 | .flags = IORESOURCE_IRQ, | ||
25 | } | ||
26 | }; | ||
27 | |||
28 | static struct platform_device rtc_device = { | ||
29 | .name = "rtc_cmos", | ||
30 | .id = -1, | ||
31 | .resource = rtc_resources, | ||
32 | .num_resources = ARRAY_SIZE(rtc_resources), | ||
33 | }; | ||
34 | |||
35 | static struct resource serial_resources[] = { | ||
36 | [0] = { | ||
37 | .start = 0x3f8, | ||
38 | .end = 0x3ff, | ||
39 | .flags = IORESOURCE_IO, | ||
40 | }, | ||
41 | [1] = { | ||
42 | .start = 0x2f8, | ||
43 | .end = 0x2ff, | ||
44 | .flags = IORESOURCE_IO, | ||
45 | }, | ||
46 | }; | ||
47 | |||
15 | static struct plat_serial8250_port serial_platform_data[] = { | 48 | static struct plat_serial8250_port serial_platform_data[] = { |
16 | { | 49 | { |
17 | .iobase = 0x3f8, | 50 | .iobase = 0x3f8, |
@@ -38,11 +71,21 @@ static struct platform_device serial_device = { | |||
38 | .dev = { | 71 | .dev = { |
39 | .platform_data = serial_platform_data, | 72 | .platform_data = serial_platform_data, |
40 | }, | 73 | }, |
74 | .resource = serial_resources, | ||
75 | .num_resources = ARRAY_SIZE(serial_resources), | ||
41 | }; | 76 | }; |
42 | 77 | ||
43 | static int __init footbridge_isa_init(void) | 78 | static int __init footbridge_isa_init(void) |
44 | { | 79 | { |
45 | return platform_device_register(&serial_device); | 80 | int err; |
81 | |||
82 | err = platform_device_register(&rtc_device); | ||
83 | if (err) | ||
84 | printk(KERN_ERR "Unable to register RTC device: %d\n", err); | ||
85 | err = platform_device_register(&serial_device); | ||
86 | if (err) | ||
87 | printk(KERN_ERR "Unable to register serial device: %d\n", err); | ||
88 | return 0; | ||
46 | } | 89 | } |
47 | 90 | ||
48 | arch_initcall(footbridge_isa_init); | 91 | arch_initcall(footbridge_isa_init); |