Subject: Re: O2 sync almost done
To: Rafal Boni <rafal@attbi.com>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sgimips
Date: 01/08/2003 10:33:51
On Tue, Jan 07, 2003 at 09:19:01AM -0500, Rafal Boni wrote:
> return (unsigned char) mace_read_8 (MACEISA_RTC_BASE + (addr << 8));
I don't think the linux code DTRT. From the SGI headers:
#define MACE_ISA_EXT (MACE_BASE + 0x00380000)
#define ISA_RTC_BASE (MACE_ISA_EXT+0x20000)
#define RT_CLOCK_ADDR \
(struct ds17287_clk *)PHYS_TO_K1(ISA_RTC_BASE+7)
... with ds17287_clk matching the standard mc register layout. Would be
interesting to find out if anyone has actually tried the linux ip32
kernel.
> I'm not sure why com@mace works but the RTC doesn't and I can't find the
> sparse bits of docs I have ATM.
The funny thing is that the RTC works for me with the +7 offset. I can't
get the little guy to fail.
-- Chris
GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5 938E 023E EEFB FEB9 DE7F)