Subject: Re: O2 sync almost done
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Rafal Boni <rafal@attbi.com>
List: port-sgimips
Date: 01/07/2003 23:15:59
In message <20030108013351.GA8231@rezrov.net>, you write: 

-> 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.

Hmm, I'll make sure I boot to IRIX and reset the date so I start out with
something sane and see what I get -- I'll also try to dump out what the
driver reads/writes.  I gotta catch up on sleep tonight, but I'll send 
a note with what I find (most likely outcome: it'll just work 8-).

--rafal

----
Rafal Boni                                                     rafal@attbi.com
  We are all worms.  But I do believe I am a glowworm.  -- Winston Churchill