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.
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>
18 #include <plat/devs.h>
20 static struct resource s3c_rtc_resource
[] = {
23 .end
= S3C_PA_RTC
+ 0xff,
24 .flags
= IORESOURCE_MEM
,
27 .start
= IRQ_RTC_ALARM
,
29 .flags
= IORESOURCE_IRQ
,
34 .flags
= IORESOURCE_IRQ
38 struct platform_device s3c_device_rtc
= {
39 .name
= "s3c64xx-rtc",
41 .num_resources
= ARRAY_SIZE(s3c_rtc_resource
),
42 .resource
= s3c_rtc_resource
,
44 EXPORT_SYMBOL(s3c_device_rtc
);