diff options
author | Jett.Zhou <jtzhou@marvell.com> | 2011-11-29 23:26:23 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-12-28 05:42:38 -0500 |
commit | 7cea00657dd4daef66ad95e976d5d67ed94cb97e (patch) | |
tree | aac948c4fbc5e12c53e7c7eeb1cb11e2e9afb199 /arch/arm/mach-sa1100/generic.c | |
parent | 42874759d7494648e42e6e0465fc9c4f3752bba4 (diff) |
RTC: sa1100: support sa1100, pxa and mmp soc families
Since the regmap of rtc on sa1100, pxa and mmp Marvell soc families are
almost the same, so re-arch the rtc-sa1100 to support them.
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-sa1100/generic.c')
-rw-r--r-- | arch/arm/mach-sa1100/generic.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 = { |