IP32 power button delivers interrupt throug RTC, so we can't let generic RTC driver use this interrupt. Following patchlet allows us to still use generic RTC driver to read/write time, and yet support handling button presses.
Index: include/asm/mach-ip32/mc146818rtc.h =================================================================== RCS file: /home/cvs/linux/include/asm-mips/mach-ip32/mc146818rtc.h,v retrieving revision 1.7 diff -u -r1.7 mc146818rtc.h --- include/asm/mach-ip32/mc146818rtc.h 4 Dec 2004 21:14:12 -0000 1.7 +++ include/asm/mach-ip32/mc146818rtc.h 9 Jan 2005 04:24:28 -0000 @@ -16,7 +16,6 @@ #include <asm/ip32/ip32_ints.h> /* For MACEISA_RTC_IRQ */
#define RTC_PORT(x) (0x70 + (x)) -#define RTC_IRQ MACEISA_RTC_IRQ
static unsigned char CMOS_READ(unsigned long addr) {