diff options
Diffstat (limited to 'include/asm-mips/mc146818rtc.h')
-rw-r--r-- | include/asm-mips/mc146818rtc.h | 7 |
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 |