diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2011-03-28 10:51:35 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2011-07-12 04:57:13 -0400 |
commit | 1c72f9eaa53e920f142f4c1d20b4fc82b1a10ed5 (patch) | |
tree | c1e0de4e02382be247096c18de69a47850d629fc /arch/arm/mach-lpc32xx/common.c | |
parent | 7db2b37751caa2f17b026223a382eca07c90c575 (diff) |
arm: lpc32xx: add rtc-device
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Kevin Wells <Kevin.wells@nxp.com>
Diffstat (limited to 'arch/arm/mach-lpc32xx/common.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/common.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/common.c b/arch/arm/mach-lpc32xx/common.c index 6880b47a9ae..205b2dbb565 100644 --- a/arch/arm/mach-lpc32xx/common.c +++ b/arch/arm/mach-lpc32xx/common.c | |||
@@ -116,6 +116,27 @@ struct platform_device lpc32xx_tsc_device = { | |||
116 | .resource = lpc32xx_tsc_resources, | 116 | .resource = lpc32xx_tsc_resources, |
117 | }; | 117 | }; |
118 | 118 | ||
119 | /* RTC */ | ||
120 | |||
121 | static struct resource lpc32xx_rtc_resources[] = { | ||
122 | { | ||
123 | .start = LPC32XX_RTC_BASE, | ||
124 | .end = LPC32XX_RTC_BASE + SZ_4K - 1, | ||
125 | .flags = IORESOURCE_MEM, | ||
126 | },{ | ||
127 | .start = IRQ_LPC32XX_RTC, | ||
128 | .end = IRQ_LPC32XX_RTC, | ||
129 | .flags = IORESOURCE_IRQ, | ||
130 | }, | ||
131 | }; | ||
132 | |||
133 | struct platform_device lpc32xx_rtc_device = { | ||
134 | .name = "rtc-lpc32xx", | ||
135 | .id = -1, | ||
136 | .num_resources = ARRAY_SIZE(lpc32xx_rtc_resources), | ||
137 | .resource = lpc32xx_rtc_resources, | ||
138 | }; | ||
139 | |||
119 | /* | 140 | /* |
120 | * Returns the unique ID for the device | 141 | * Returns the unique ID for the device |
121 | */ | 142 | */ |