This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: AT91 I2C driver
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Steven Clugston <steven dot clugston at newcastle dot ac dot uk>
- Cc: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 28 Oct 2009 13:37:41 +0100
- Subject: Re: [ECOS] AT91 I2C driver
- References: <4DCF6DBD3535F742BB167C528BBEE9803828B88A32@EXSAN01.campus.ncl.ac.uk>
On Wed, Oct 28, 2009 at 11:27:36AM +0000, Steven Clugston wrote:
> Is anybody out there interested in having/testing an AT91 I2C driver?
>
> I'm currently having a stab at writing one using the lpc2xxx one as
> a reference, although I'm not sure if I'll actually have time to see
> it through to completion yet.
A word of caution. The Linux kernel guys consider the AT91 I2C device
to be FUBAR.
http://cateee.net/lkddb/web-lkddb/I2C_AT91.html
http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg24797.html
http://www.mail-archive.com/i2c@lm-sensors.org/msg02209.html
I think it is O.K. for single byte transfers, but anything more than
that could lead to problems.
Maybe you should consider bit banging the pins?
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss