Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / arm / plat-samsung / dev-rtc.c
blob91967c970c435e2c514ba83c31ce04f99c5727f8
1 /* linux/arch/arm/plat-samsung/dev-rtc.c
3 * Copyright 2009 by Maurus Cuelenaere <mcuelenaere@gmail.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
10 #include <linux/kernel.h>
11 #include <linux/string.h>
12 #include <linux/platform_device.h>
13 #include <linux/export.h>
15 #include <mach/irqs.h>
16 #include <mach/map.h>
18 #include <plat/devs.h>
20 static struct resource s3c_rtc_resource[] = {
21 [0] = {
22 .start = S3C_PA_RTC,
23 .end = S3C_PA_RTC + 0xff,
24 .flags = IORESOURCE_MEM,
26 [1] = {
27 .start = IRQ_RTC_ALARM,
28 .end = IRQ_RTC_ALARM,
29 .flags = IORESOURCE_IRQ,
31 [2] = {
32 .start = IRQ_RTC_TIC,
33 .end = IRQ_RTC_TIC,
34 .flags = IORESOURCE_IRQ
38 struct platform_device s3c_device_rtc = {
39 .name = "s3c64xx-rtc",
40 .id = -1,
41 .num_resources = ARRAY_SIZE(s3c_rtc_resource),
42 .resource = s3c_rtc_resource,
44 EXPORT_SYMBOL(s3c_device_rtc);