[PATCH 3/8] ARM: SAMSUNG: Add S3C64XX RTC register definitions

Kukjin Kim kgene.kim at samsung.com
Tue May 18 01:59:15 EDT 2010


From: Taekgyun Ko <taeggyun.ko at samsung.com>

This patch adds S3C64XX RTC register definitions.

Signed-off-by: Taekgyun Ko <taeggyun.ko at samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73 at samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim at samsung.com>
---
 arch/arm/plat-samsung/include/plat/regs-rtc.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-samsung/include/plat/regs-rtc.h b/arch/arm/plat-samsung/include/plat/regs-rtc.h
index 5b547ce..82c3aab 100644
--- a/arch/arm/plat-samsung/include/plat/regs-rtc.h
+++ b/arch/arm/plat-samsung/include/plat/regs-rtc.h
@@ -1,5 +1,8 @@
 /* arch/arm/mach-s3c2410/include/mach/regs-rtc.h
  *
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd.
+ *		http://www.samsung.com/
+ *
  * Copyright (c) 2003 Simtec Electronics <linux at simtec.co.uk>
  *		      http://www.simtec.co.uk/products/SWLINUX/
  *
@@ -15,11 +18,16 @@
 
 #define S3C2410_RTCREG(x)	(x)
 
+#define S3C64XX_INTP		S3C2410_RTCREG(0x30)
+#define S3C64XX_INTP_TIC	(1 << 0)
+#define S3C64XX_INTP_ALM	(1 << 1)
+
 #define S3C2410_RTCCON		S3C2410_RTCREG(0x40)
 #define S3C2410_RTCCON_RTCEN	(1 << 0)
 #define S3C2410_RTCCON_CLKSEL	(1 << 1)
 #define S3C2410_RTCCON_CNTSEL	(1 << 2)
 #define S3C2410_RTCCON_CLKRST	(1 << 3)
+#define S3C64XX_RTCCON_TICEN	(1 << 8)
 
 #define S3C2410_TICNT		S3C2410_RTCREG(0x44)
 #define S3C2410_TICNT_ENABLE	(1 << 7)
-- 
1.6.2.5




More information about the linux-arm-kernel mailing list