linux-mips
[Top] [All Lists]

IP32 RTC fixlet

To: linux-mips@linux-mips.org
Subject: IP32 RTC fixlet
From: "Ilya A. Volynets-Evenbakh" <ilya@total-knowledge.com>
Date: Sat, 08 Jan 2005 20:27:46 -0800
Organization: Total Knowledge
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041221
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)
{


<Prev in Thread] Current Thread [Next in Thread>