diff options
author | Baruch Siach <baruch@tkos.co.il> | 2010-01-27 08:00:48 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-01-29 04:43:21 -0500 |
commit | dcbabbc1fce2c32e4cfe0e18a2651226a72ecaae (patch) | |
tree | 07282c982a6e6d756a76e754c22e7a7ed8812f3b /arch/arm/mach-mx25/devices.c | |
parent | 4cb73288b195dc04c1f604c38bd4ebd2081db9fa (diff) |
mx25: add support for the DryIce rtc
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index dd4069725ef5..b0b75fc99058 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -458,3 +458,22 @@ struct platform_device mxc_nand_device = { | |||
458 | .num_resources = ARRAY_SIZE(mxc_nand_resources), | 458 | .num_resources = ARRAY_SIZE(mxc_nand_resources), |
459 | .resource = mxc_nand_resources, | 459 | .resource = mxc_nand_resources, |
460 | }; | 460 | }; |
461 | |||
462 | static struct resource mx25_rtc_resources[] = { | ||
463 | { | ||
464 | .start = MX25_DRYICE_BASE_ADDR, | ||
465 | .end = MX25_DRYICE_BASE_ADDR + 0x40, | ||
466 | .flags = IORESOURCE_MEM, | ||
467 | }, | ||
468 | { | ||
469 | .start = MX25_INT_DRYICE, | ||
470 | .flags = IORESOURCE_IRQ | ||
471 | }, | ||
472 | }; | ||
473 | |||
474 | struct platform_device mx25_rtc_device = { | ||
475 | .name = "imxdi_rtc", | ||
476 | .id = 0, | ||
477 | .num_resources = ARRAY_SIZE(mx25_rtc_resources), | ||
478 | .resource = mx25_rtc_resources, | ||
479 | }; | ||