mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Grant Erickson <erick205@umn.edu>
Cc: Linux I2C Mailing List <linux-i2c@pelican.tk.uni-linz.ac.at>,
	Linux/PPC Embedded Mailing List 
	<linuxppc-embedded@lists.linuxppc.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Kernel Real Time Clock (RTC) Support for I2C Devices
Date: Wed, 18 Apr 2001 21:40:32 +0200	[thread overview]
Message-ID: <20010418194037.C55DB2792B@denx.denx.de> (raw)
In-Reply-To: Your message of "Wed, 18 Apr 2001 14:13:33 CDT." <Pine.SOL.4.20.0104181408540.10793-100000@garnet.tc.umn.edu>

Dear Grant,

in message <Pine.SOL.4.20.0104181408540.10793-100000@garnet.tc.umn.edu> you wrote:
> 
> >From the looks of drivers/char/rtc.c it would appear that this kernel
> driver only supports bus-attached RTCs such as the mentioned MC146818. Is
> this correct?

This is correct; however, you can replace this driver by one of  your
own  (see for instance drivers/char/ip860_rtc.c in our version of the
2.4.x Linux sources which implements the RTC driver for a  V3021  RTC
on a IP860 VMEBus system [MPC860 based]).

Right now I'm writing another driver for  the  Philips  PCF8563  RTC,
which is much closer to what you have in mind.

> What is the correct access method / kernel tie-in for supporting such an
> I2C-based RTC device using the "standard" interfaces?

Assuming you have a working I2C driver, just add the necessary "glue"
code to provide the same interface as that of drivers/char/rtc.c .

> My hope is to use 'hwclock' from util-linux w/o modification. Is this
> reasonable?

Yes, this will work (it does for me on the MPC8xx).

Hope this helps,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
The universe does not have laws - it has habits, and  habits  can  be
broken.

  parent reply	other threads:[~2001-04-18 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18 19:13 Grant Erickson
2001-04-18 19:35 ` Gabriel Paubert
2001-04-18 19:40 ` Wolfgang Denk [this message]
2001-04-19 11:33 ` johan.adolfsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010418194037.C55DB2792B@denx.denx.de \
    --to=wd@denx.de \
    --cc=erick205@umn.edu \
    --cc=linux-i2c@pelican.tk.uni-linz.ac.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®