diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 20 | ||||
-rw-r--r-- | arch/arm/mach-sa1100/generic.c | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 2e0425404de5..8b134c3b457f 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -415,9 +415,29 @@ static struct resource pxa_rtc_resources[] = { | |||
415 | }, | 415 | }, |
416 | }; | 416 | }; |
417 | 417 | ||
418 | static struct resource sa1100_rtc_resources[] = { | ||
419 | [0] = { | ||
420 | .start = 0x40900000, | ||
421 | .end = 0x409000ff, | ||
422 | .flags = IORESOURCE_MEM, | ||
423 | }, | ||
424 | [1] = { | ||
425 | .start = IRQ_RTC1Hz, | ||
426 | .end = IRQ_RTC1Hz, | ||
427 | .flags = IORESOURCE_IRQ, | ||
428 | }, | ||
429 | [2] = { | ||
430 | .start = IRQ_RTCAlrm, | ||
431 | .end = IRQ_RTCAlrm, | ||
432 | .flags = IORESOURCE_IRQ, | ||
433 | }, | ||
434 | }; | ||
435 | |||
418 | struct platform_device sa1100_device_rtc = { | 436 | struct platform_device sa1100_device_rtc = { |
419 | .name = "sa1100-rtc", | 437 | .name = "sa1100-rtc", |
420 | .id = -1, | 438 | .id = -1, |
439 | .num_resources = ARRAY_SIZE(sa1100_rtc_resources), | ||
440 | .resource = sa1100_rtc_resources, | ||
421 | }; | 441 | }; |
422 | 442 | ||
423 | struct platform_device pxa_device_rtc = { | 443 | struct platform_device pxa_device_rtc = { |
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c index 5fa5ae1f39e1..3eff179d4fd7 100644 --- a/arch/arm/mach-sa1100/generic.c +++ b/arch/arm/mach-sa1100/generic.c | |||
@@ -334,9 +334,29 @@ void sa11x0_register_irda(struct irda_platform_data *irda) | |||
334 | sa11x0_register_device(&sa11x0ir_device, irda); | 334 | sa11x0_register_device(&sa11x0ir_device, irda); |
335 | } | 335 | } |
336 | 336 | ||
337 | static struct resource sa11x0rtc_resources[] = { | ||
338 | [0] = { | ||
339 | .start = 0x90010000, | ||
340 | .end = 0x900100ff, | ||
341 | .flags = IORESOURCE_MEM, | ||
342 | }, | ||
343 | [1] = { | ||
344 | .start = IRQ_RTC1Hz, | ||
345 | .end = IRQ_RTC1Hz, | ||
346 | .flags = IORESOURCE_IRQ, | ||
347 | }, | ||
348 | [2] = { | ||
349 | .start = IRQ_RTCAlrm, | ||
350 | .end = IRQ_RTCAlrm, | ||
351 | .flags = IORESOURCE_IRQ, | ||
352 | }, | ||
353 | }; | ||
354 | |||
337 | static struct platform_device sa11x0rtc_device = { | 355 | static struct platform_device sa11x0rtc_device = { |
338 | .name = "sa1100-rtc", | 356 | .name = "sa1100-rtc", |
339 | .id = -1, | 357 | .id = -1, |
358 | .resource = sa11x0rtc_resources, | ||
359 | .num_resources = ARRAY_SIZE(sa11x0rtc_resources), | ||
340 | }; | 360 | }; |
341 | 361 | ||
342 | static struct platform_device *sa11x0_devices[] __initdata = { | 362 | static struct platform_device *sa11x0_devices[] __initdata = { |