Thread (1 message) 1 message, 1 author, 2003-07-07
  • (off-list ancestor, not in this archive)
  • Re: i2c linux drivers · Craig Hollabaugh <hidden> · 2003-07-07

Re: i2c linux drivers

From: Craig Hollabaugh <hidden>
Date: 2003-07-07 15:49:26

On Mon, 2003-07-07 at 04:07, Seb James wrote:
Seb James wrote:
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help