patch-2.4.6 linux/include/asm-mips/mc146818rtc.h

Next file: linux/include/asm-mips/mips32_cache.h
Previous file: linux/include/asm-mips/linux_logo.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/include/asm-mips/mc146818rtc.h linux/include/asm-mips/mc146818rtc.h
@@ -14,8 +14,12 @@
 #include <asm/io.h>
 
 #ifndef RTC_PORT
+#if defined(CONFIG_MIPS_ITE8172) || defined(CONFIG_MIPS_IVR)
+#define RTC_PORT(x)	(0x14014800 + (x))
+#else
 #define RTC_PORT(x)	(0x70 + (x))
 #endif
+#endif
 
 /*
  * The yet supported machines all access the RTC index register via
@@ -45,8 +49,13 @@
 
 #ifdef CONFIG_DECSTATION
 #define RTC_IRQ 0
+#elif defined(CONFIG_MIPS_ITE8172) || defined(CONFIG_MIPS_IVR)
+#include <asm/it8172/it8172_int.h>
+#define RTC_IRQ	IT8172_RTC_IRQ
 #else
 #define RTC_IRQ	8
 #endif
+
+#define RTC_DEC_YEAR	0x3f	/* Where we store the real year on DECs.  */
 
 #endif /* _ASM_MC146818RTC_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)