diff options
Diffstat (limited to 'arch/arm/plat-orion/common.c')
-rw-r--r-- | arch/arm/plat-orion/common.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index 4eac532ae8ae..d06559123835 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c | |||
@@ -169,3 +169,21 @@ void __init orion_uart3_init(unsigned int membase, | |||
169 | uart_complete(&orion_uart3, orion_uart3_data, orion_uart3_resources, | 169 | uart_complete(&orion_uart3, orion_uart3_data, orion_uart3_resources, |
170 | membase, mapbase, irq, uartclk); | 170 | membase, mapbase, irq, uartclk); |
171 | } | 171 | } |
172 | |||
173 | /***************************************************************************** | ||
174 | * SoC RTC | ||
175 | ****************************************************************************/ | ||
176 | static struct resource orion_rtc_resource[2]; | ||
177 | |||
178 | void __init orion_rtc_init(unsigned long mapbase, | ||
179 | unsigned long irq) | ||
180 | { | ||
181 | orion_rtc_resource[0].start = mapbase; | ||
182 | orion_rtc_resource[0].end = mapbase + SZ_32 - 1; | ||
183 | orion_rtc_resource[0].flags = IORESOURCE_MEM; | ||
184 | orion_rtc_resource[1].start = irq; | ||
185 | orion_rtc_resource[1].end = irq; | ||
186 | orion_rtc_resource[1].flags = IORESOURCE_IRQ; | ||
187 | |||
188 | platform_device_register_simple("rtc-mv", -1, orion_rtc_resource, 2); | ||
189 | } | ||