From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g5E6IrnC012521 for ; Thu, 13 Jun 2002 23:18:53 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g5E6IrKt012520 for linux-mips-outgoing; Thu, 13 Jun 2002 23:18:53 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-linux-mips@oss.sgi.com using -f Received: from sgi.com (sgi-too.SGI.COM [204.94.211.39]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g5E6IjnC012517 for ; Thu, 13 Jun 2002 23:18:45 -0700 Received: from opus.bloom.county (cpe-24-221-152-185.az.sprintbbd.net [24.221.152.185]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id RAA04933 for ; Thu, 13 Jun 2002 17:41:57 -0700 (PDT) mail_from (trini@kernel.crashing.org) Received: from tmrini by opus.bloom.county with local (Exim 3.35 #1 (Debian)) id 17Iew7-0006nu-00; Thu, 13 Jun 2002 17:27:31 -0700 Date: Thu, 13 Jun 2002 17:27:31 -0700 From: Tom Rini To: Richard Zidlicky Cc: Roman Zippel , Linux/MIPS Development , Linux/m68k , Linux/PPC Development Subject: Re: [RFC and PATCH] Move the m68k genrtc driver into 2.5 and use on PPC Message-ID: <20020614002731.GC13541@opus.bloom.county> References: <20020613190646.GT13541@opus.bloom.county> <20020614003143.C1230@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020614003143.C1230@linux-m68k.org> User-Agent: Mutt/1.3.28i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Jun 14, 2002 at 12:31:43AM +0200, Richard Zidlicky wrote: > On Thu, Jun 13, 2002 at 12:06:46PM -0700, Tom Rini wrote: > Hi, > > > Secondly to the m68k people, does anyone have an objection (or would > > like to do it themselves?) with me trying to get Linus to take the > > changes to include/linux/rtc.h? radeonfb.c currently conflicts with the > > 'pll_info' struct, but Ani Joshi is renaming it. > > I will be happy whoever gets it in. The pll_info stuff could be > renamed in genrtc.c as well. It could... But I imagine it'll be fun getting that in either way. :) > > Also, CONFIG_GEN_RTC > > used to be define_bool'ed to y on CONFIG_SUN3, but I'm not sure if that > > looks nice in a common file. Any idea on how to solve this nicely? > > m68k doesn't source drivers/chars/Config.in so just don't do > anything about it? Ah, it doesn't? I suppose that will work too.. :) > > diff -Nru a/drivers/char/Config.help b/drivers/char/Config.help > > --- a/drivers/char/Config.help Thu Jun 13 12:03:49 2002 > > +++ b/drivers/char/Config.help Thu Jun 13 12:03:49 2002 > > @@ -1058,6 +1058,34 @@ > > The module is called rtc.o. If you want to compile it as a module, > > say M here and read . > > > > +Generic Real Time Clock Support > > +CONFIG_GEN_RTC > > + If you say Y here and create a character special file /dev/rtc with > > + major number 10 and minor number 135 using mknod ("man mknod"), you > > + will get access to the real time clock (or hardware clock) built > > + into your computer. > > + > > + In 2.4 and later kernels this is the only way to set and get rtc > > + time on m68k systems so it is highly recommended. > > + > > + It reports status information via the file /proc/driver/rtc and its > > + behaviour is set by various ioctls on /dev/rtc. If you enable the > > + "extended RTC operation" below it will also provide an emulation > > + for RTC_UIE which is required by some programs and may improve > > + precision in some cases. > > + > > + This driver is also available as a module ( = code which can be > > + inserted in and removed from the running kernel whenever you want). > > + The module is called rtc.o. If you want to compile it as a module, > ^^^^^^^ > genrtc.o ... I could swear I fixed it in m68k CVS ;) I might have grabbed too old a version of that. Fixing it now. -- Tom Rini (TR1265) http://gate.crashing.org/~trini/ From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 13 Jun 2002 17:27:31 -0700 From: Tom Rini To: Richard Zidlicky Cc: Roman Zippel , Linux/MIPS Development , Linux/m68k , Linux/PPC Development Subject: Re: [RFC and PATCH] Move the m68k genrtc driver into 2.5 and use on PPC Message-ID: <20020614002731.GC13541@opus.bloom.county> References: <20020613190646.GT13541@opus.bloom.county> <20020614003143.C1230@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20020614003143.C1230@linux-m68k.org> Sender: owner-linuxppc-dev@lists.linuxppc.org List-Id: On Fri, Jun 14, 2002 at 12:31:43AM +0200, Richard Zidlicky wrote: > On Thu, Jun 13, 2002 at 12:06:46PM -0700, Tom Rini wrote: > Hi, > > > Secondly to the m68k people, does anyone have an objection (or would > > like to do it themselves?) with me trying to get Linus to take the > > changes to include/linux/rtc.h? radeonfb.c currently conflicts with the > > 'pll_info' struct, but Ani Joshi is renaming it. > > I will be happy whoever gets it in. The pll_info stuff could be > renamed in genrtc.c as well. It could... But I imagine it'll be fun getting that in either way. :) > > Also, CONFIG_GEN_RTC > > used to be define_bool'ed to y on CONFIG_SUN3, but I'm not sure if that > > looks nice in a common file. Any idea on how to solve this nicely? > > m68k doesn't source drivers/chars/Config.in so just don't do > anything about it? Ah, it doesn't? I suppose that will work too.. :) > > diff -Nru a/drivers/char/Config.help b/drivers/char/Config.help > > --- a/drivers/char/Config.help Thu Jun 13 12:03:49 2002 > > +++ b/drivers/char/Config.help Thu Jun 13 12:03:49 2002 > > @@ -1058,6 +1058,34 @@ > > The module is called rtc.o. If you want to compile it as a module, > > say M here and read . > > > > +Generic Real Time Clock Support > > +CONFIG_GEN_RTC > > + If you say Y here and create a character special file /dev/rtc with > > + major number 10 and minor number 135 using mknod ("man mknod"), you > > + will get access to the real time clock (or hardware clock) built > > + into your computer. > > + > > + In 2.4 and later kernels this is the only way to set and get rtc > > + time on m68k systems so it is highly recommended. > > + > > + It reports status information via the file /proc/driver/rtc and its > > + behaviour is set by various ioctls on /dev/rtc. If you enable the > > + "extended RTC operation" below it will also provide an emulation > > + for RTC_UIE which is required by some programs and may improve > > + precision in some cases. > > + > > + This driver is also available as a module ( = code which can be > > + inserted in and removed from the running kernel whenever you want). > > + The module is called rtc.o. If you want to compile it as a module, > ^^^^^^^ > genrtc.o ... I could swear I fixed it in m68k CVS ;) I might have grabbed too old a version of that. Fixing it now. -- Tom Rini (TR1265) http://gate.crashing.org/~trini/ ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/