From 49a3beac398bd3e89dc4c8a5caff106cbd1e0cff Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 21 Feb 2001 13:30:36 +0000 Subject: ITE 8172 patches from Pete Popov slightly hacked by me. --- include/asm-mips/mc146818rtc.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/asm-mips/mc146818rtc.h') 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 #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 +#define RTC_IRQ IT8172_RTC_IRQ #else #define RTC_IRQ 8 #endif -- cgit v1.2.3