patch-2.4.5 linux/include/asm-cris/rtc.h
Next file: linux/include/asm-cris/segment.h
Previous file: linux/include/asm-cris/ptrace.h
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Tue May 1 16:05:00 2001
- Orig file:
v2.4.4/linux/include/asm-cris/rtc.h
- Orig date:
Thu Feb 8 16:32:44 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-cris/rtc.h linux/include/asm-cris/rtc.h
@@ -1,4 +1,4 @@
-/* $Id: rtc.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
+/* $Id: rtc.h,v 1.3 2001/03/21 09:56:31 magnusmn Exp $ */
#ifndef RTC_H
#define RTC_H
@@ -14,8 +14,21 @@
#define RTC_MONTH 4
#define RTC_WEEKDAY 5
#define RTC_YEAR 6
+#define RTC_CONTROL 7
-#ifdef CONFIG_DS1302
+/* Bits in CONTROL register */
+#define RTC_CONTROL_WRITEPROTECT 0x80
+#define RTC_TRICKLECHARGER 8
+/* Bits in TRICKLECHARGER register TCS TCS TCS TCS DS DS RS RS */
+#define RTC_TCR_PATTERN 0xA0 /* 1010xxxx */
+#define RTC_TCR_1DIOD 0x04 /* xxxx01xx */
+#define RTC_TCR_2DIOD 0x08 /* xxxx10xx */
+#define RTC_TCR_DISABLED 0x00 /* xxxxxx00 Disabled */
+#define RTC_TCR_2KOHM 0x01 /* xxxxxx01 2KOhm */
+#define RTC_TCR_4KOHM 0x02 /* xxxxxx10 4kOhm */
+#define RTC_TCR_8KOHM 0x03 /* xxxxxx11 8kOhm */
+
+#ifdef CONFIG_ETRAX_DS1302
#define CMOS_READ(x) ds1302_readreg(x)
#define CMOS_WRITE(val,reg) ds1302_writereg(reg,val)
#define RTC_INIT() ds1302_init()
@@ -55,5 +68,8 @@
#define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
#define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
+#define RTC_SET_CHARGE _IOW('p', 0x0b, int) /* Set CHARGE mode */
#endif
+
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)