From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 19 Dec 2003 12:40:50 +0100 To: Tom Rini Cc: Sven Luther , Benjamin Herrenschmidt , Lee Braiden , debian-powerpc@lists.debian.org, linuxppc-dev@lists.linuxppc.org Subject: Re: Would setting the CONFIG_RTC option break the powerpc kernel on your machine ? Message-ID: <20031219114050.GA5650@iliana> References: <20031216105656.GA5291@iliana> <1071642293.753.414.camel@gaston> <200312170717.36564.jel@ntlworld.com> <1071646057.6370.482.camel@gaston> <20031217095139.GC2283@iliana> <20031217164740.GR11761@stop.crashing.org> <20031217165608.GA11653@iliana> <20031217170620.GS11761@stop.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: <20031217170620.GS11761@stop.crashing.org> From: Sven Luther Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: On Wed, Dec 17, 2003 at 10:06:20AM -0700, Tom Rini wrote: > > On Wed, Dec 17, 2003 at 05:56:08PM +0100, Sven Luther wrote: > > > > On Wed, Dec 17, 2003 at 09:47:40AM -0700, Tom Rini wrote: > > > 4) Use CONFIG_GEN_RTC and be happy. What _might_ be happening right now > > > is that chrp_get_rtc_time is 'funky' and not quite right for anything > > > other than an IBM OpenFirmeware'd CHRP box. What I would suggest is > > > looking at include/asm-generic/rtc.h in 2.6 and moving much of that code > > > into 'chrp_get_rtc_time' and 'chrp_set_rtc_time'. > > > > Ok, thanks, i will look into it. > > > > But then, remember, this is for the debian powerpc kernel, and has to be > > 2.4.x still for now. > > Yes. The code in is taken right from > drivers/char/rtc.c. It just didn't get sent to 2.4 for some reason. Ok, found the code, altough drivers/char/rtc.c doesn't seem to have a set_rtc_time function. BTW, what exactly should i do in 'chrp_get_rtc_time' and 'chrp_set_rtc_time' ? Just replace the existing code, or make a new function, and set it depending on machine type who needs it in chrp_setup.c ? I already do that for the pegasos irq stuff. I just would have to set ppc_md.set_rtc_time accordyingly. This is still with the 2.4.x code base. Friendly, Sven Luther ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/