diff options
author | Changhwan Youn <chaos.youn@samsung.com> | 2010-09-20 02:25:51 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2010-10-20 18:52:17 -0400 |
commit | cdff6e6fd2d4360e2d5bc39afe3f1ef17d79dbf0 (patch) | |
tree | 04fdb5f0db8ec36c0493a5c48beab53cee2ffcf9 /arch/arm/mach-s5pv310/mach-smdkv310.c | |
parent | 1d826d14cc2783d0c09750c2e1eeb2bdd358769b (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-smdkv310.c')
-rw-r--r-- | arch/arm/mach-s5pv310/mach-smdkv310.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv310/mach-smdkv310.c b/arch/arm/mach-s5pv310/mach-smdkv310.c index 0d6ab77709d2..06062c8e337c 100644 --- a/arch/arm/mach-s5pv310/mach-smdkv310.c +++ b/arch/arm/mach-s5pv310/mach-smdkv310.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <plat/regs-serial.h> | 17 | #include <plat/regs-serial.h> |
18 | #include <plat/s5pv310.h> | 18 | #include <plat/s5pv310.h> |
19 | #include <plat/cpu.h> | 19 | #include <plat/cpu.h> |
20 | #include <plat/devs.h> | ||
20 | 21 | ||
21 | #include <mach/map.h> | 22 | #include <mach/map.h> |
22 | 23 | ||
@@ -65,6 +66,10 @@ static struct s3c2410_uartcfg smdkv310_uartcfgs[] __initdata = { | |||
65 | }, | 66 | }, |
66 | }; | 67 | }; |
67 | 68 | ||
69 | static struct platform_device *smdkv310_devices[] __initdata = { | ||
70 | &s3c_device_rtc, | ||
71 | }; | ||
72 | |||
68 | static void __init smdkv310_map_io(void) | 73 | static void __init smdkv310_map_io(void) |
69 | { | 74 | { |
70 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 75 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -77,6 +82,8 @@ static void __init smdkv310_machine_init(void) | |||
77 | #ifdef CONFIG_CACHE_L2X0 | 82 | #ifdef CONFIG_CACHE_L2X0 |
78 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); | 83 | l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff); |
79 | #endif | 84 | #endif |
85 | |||
86 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); | ||
80 | } | 87 | } |
81 | 88 | ||
82 | MACHINE_START(SMDKV310, "SMDKV310") | 89 | MACHINE_START(SMDKV310, "SMDKV310") |