summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mc146818rtc.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-21 13:30:36 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-21 13:30:36 +0000
commit49a3beac398bd3e89dc4c8a5caff106cbd1e0cff (patch)
tree4f9a8bfdbe571a81ca63b73ae45c0b466661fb35 /include/asm-mips/mc146818rtc.h
parentb8d3cc7ceb61a07b865b420139477b91a4be202f (diff)
ITE 8172 patches from Pete Popov slightly hacked by me.
Diffstat (limited to 'include/asm-mips/mc146818rtc.h')
-rw-r--r--include/asm-mips/mc146818rtc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-mips/mc146818rtc.h b/include/asm-mips/mc146818rtc.h
index 297fc0b74..6e23e432f 100644
--- a/include/asm-mips/mc146818rtc.h
+++ b/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,6 +49,9 @@ extern struct rtc_ops *rtc_ops;
#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