From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <99f09a44106797788a2987f38a186158.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9605081612.AA16683@rsphy6.anu.edu.au> Date: Thu, 9 May 1996 02:12:31 +1000 (EST) From: Paul Gortmaker Subject: Re: /dev/rtc on Jensen? In-Reply-To: >From "Linus Torvalds" at May 8, 96 05:41:44 pm > On Wed, 8 May 1996, Nils Faerber wrote: > > > > Hi folks! > > Yesterday night I tested the new RTC device on my Jensen and crashed the > > system's clock completely so that I had to hard-reset (power cycle) the > > machine. It would be good to know where it dies, e.g. at boot, or while doing a "cat /proc/rtc" or while running the example/test program. > You would probably get it to work by changing RTC_IO_BASE in rtc.c from > 0x70 to 0x170 for the Jensen, but in fact you might be better off using > the "RTC_PORT()" define (change the RTC_IO_BASE define to be > > #define RTC_IO_BASE RTC_PORT(0) There has to be more to it than that. The RTC_IO_BASE is only used for the request_region() call. (yes, it should use RTC_PORT(0) as well...) All of the access to the RTC hardware is done via CMOS_READ() and CMOS_WRITE() which use the RTC_PORT() macro, and thus should get the 0x170 address. (The rtc driver includes which grabs which should in turn grab finally.) Just in case it doesn't, you can verify the base address with the following change: -printk("Real Time Clock Driver v%s\n", RTC_VERSION); +printk("Real Time Clock Driver v%s at i/o %#3x\n", RTC_VERSION, RTC_PORT(0)); > Paul, you might take note of this (your comments at the RTC_IO_BASE thing > say something along "can't see this changing soon", but you didn't take > into account the strange and wonderful things when non-x86 people start > playing with the ISA bus..) I've tried to keep Alpha machines in mind when doing driver work. After all, I made all the 8390 net drivers "Alpha Compatible" quite a long time ago, which has to count for something... Please CC any replies to me, as I am not on axp-list@redhat.com, nor do I own an AXP, but I would like to try and fix this regardless. Thanks, Paul.