summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv310/mach-smdkc210.c
diff options
context:
space:
mode:
authorChanghwan Youn <chaos.youn@samsung.com>2010-09-20 15:25:51 +0900
committerKukjin Kim <kgene.kim@samsung.com>2010-10-21 07:52:17 +0900
commitcdff6e6fd2d4360e2d5bc39afe3f1ef17d79dbf0 (patch)
tree04fdb5f0db8ec36c0493a5c48beab53cee2ffcf9 /arch/arm/mach-s5pv310/mach-smdkc210.c
parent1d826d14cc2783d0c09750c2e1eeb2bdd358769b (diff)
ARM: S5PV310: Add support RTC
This patch adds support RTC for S5PV310 and S5PC210. Signed-off-by: Changhwan Youn <chaos.youn@samsung.com> Signed-off-by: Jemings Ko <jemings@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s5pv310/mach-smdkc210.c')
-rw-r--r--arch/arm/mach-s5pv310/mach-smdkc210.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv310/mach-smdkc210.c b/arch/arm/mach-s5pv310/mach-smdkc210.c
index 656de012390..9464084cc1f 100644
--- a/arch/arm/mach-s5pv310/mach-smdkc210.c
+++ b/arch/arm/mach-s5pv310/mach-smdkc210.c
@@ -17,6 +17,7 @@
#include <plat/regs-serial.h>
#include <plat/s5pv310.h>
#include <plat/cpu.h>
+#include <plat/devs.h>
#include <mach/map.h>
@@ -65,6 +66,10 @@ static struct s3c2410_uartcfg smdkc210_uartcfgs[] __initdata = {
},
};
+static struct platform_device *smdkc210_devices[] __initdata = {
+ &s3c_device_rtc,
+};
+
static void __init smdkc210_map_io(void)
{
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -77,6 +82,8 @@ static void __init smdkc210_machine_init(void)
#ifdef CONFIG_CACHE_L2X0
l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
#endif
+
+ platform_add_devices(smdkc210_devices, ARRAY_SIZE(smdkc210_devices));
}
MACHINE_START(SMDKC210, "SMDKC210")