Commit cdff6e6f authored by Changhwan Youn's avatar Changhwan Youn Committed by Kukjin Kim
Browse files

ARM: S5PV310: Add support RTC



This patch adds support RTC for S5PV310 and S5PC210.

Signed-off-by: default avatarChanghwan Youn <chaos.youn@samsung.com>
Signed-off-by: default avatarJemings Ko <jemings@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 1d826d14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -733,6 +733,7 @@ config ARCH_S5PV310
	select GENERIC_GPIO
	select HAVE_CLK
	select GENERIC_CLOCKEVENTS
	select HAVE_S3C_RTC
	help
	  Samsung S5PV310 series based systems

+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ config MACH_SMDKC210
	bool "SMDKC210"
	select CPU_S5PV310
	select ARCH_SPARSEMEM_ENABLE
	select S3C_DEV_RTC
	help
	  Machine support for Samsung SMDKC210
	  S5PC210(MCP) is one of package option of S5PV310
@@ -53,6 +54,7 @@ config MACH_SMDKV310
	bool "SMDKV310"
	select CPU_S5PV310
	select ARCH_SPARSEMEM_ENABLE
	select S3C_DEV_RTC
	help
	  Machine support for Samsung SMDKV310

+5 −0
Original line number Diff line number Diff line
@@ -471,6 +471,11 @@ static struct clk init_clocks_disable[] = {
		.id		= -1,
		.enable		= s5pv310_clk_ip_peril_ctrl,
		.ctrlbit	= (1 << 15),
	}, {
		.name		= "rtc",
		.id		= -1,
		.enable		= s5pv310_clk_ip_perir_ctrl,
		.ctrlbit	= (1 << 15),
	}, {
		.name		= "watchdog",
		.id		= -1,
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@
#define IRQ_TIMER3_VIC		COMBINER_IRQ(22, 3)
#define IRQ_TIMER4_VIC		COMBINER_IRQ(22, 4)

#define IRQ_RTC_ALARM		COMBINER_IRQ(23, 0)
#define IRQ_RTC_TIC		COMBINER_IRQ(23, 1)

#define IRQ_UART0		COMBINER_IRQ(26, 0)
#define IRQ_UART1		COMBINER_IRQ(26, 1)
#define IRQ_UART2		COMBINER_IRQ(26, 2)
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#define S5PV310_PA_CMU			(0x10030000)

#define S5PV310_PA_WATCHDOG		(0x10060000)
#define S5PV310_PA_RTC			(0x10070000)

#define S5PV310_PA_COMBINER		(0x10448000)

@@ -81,6 +82,7 @@
#define S3C_PA_HSMMC2			S5PV310_PA_HSMMC(2)
#define S3C_PA_HSMMC3			S5PV310_PA_HSMMC(3)
#define S3C_PA_IIC			S5PV310_PA_IIC0
#define S3C_PA_RTC			S5PV310_PA_RTC
#define S3C_PA_WDT			S5PV310_PA_WATCHDOG

#endif /* __ASM_ARCH_MAP_H */
Loading