linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Craig Hollabaugh <craig@hollabaugh.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: i2c linux drivers
Date: 07 Jul 2003 09:49:26 -0600	[thread overview]
Message-ID: <1057592966.979.2.camel@gibson> (raw)
In-Reply-To: <3F094650.9070204@peak.uklinux.net>


On Mon, 2003-07-07 at 04:07, Seb James wrote:
>
> Seb James wrote:
>
> > Hello all,
> >
> > I'm trying to write an i2c driver to interface a ds1307 realtime clock
> > to linux. I'm having no luck getting linux to do anything at all on the
> > i2c bus.


Seb,

If you give up, you can just use the PPC I2C routines I wrote for my
book.

http://www.embeddedlinuxinterfacing.com/chapters/10/SAA1064_rpxcllf.c

I think you can just change the I2C signaling macros for your hardware
and get things running.

I used this code just yesterday for an x86 SBC talking to a DalSemi
digipot.

Craig


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      parent reply	other threads:[~2003-07-07 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-07  9:19 i2c linux drivers Seb James
     [not found] ` <3F094650.9070204@peak.uklinux.net>
2003-07-07 15:49   ` Craig Hollabaugh [this message]

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=1057592966.979.2.camel@gibson \
    --to=craig@hollabaugh.com \
    --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;
as well as URLs for NNTP newsgroup(s).