Re: Bitbanging i2c bus driver using the GPIO API

Jordan Crouse
2007-04-19T14:49:30Z

On 19/04/07 08:54 +0200, Jean Delvare wrote:
> Hi Len,
>
> On Wed, 18 Apr 2007 13:42:56 -0400, Lennart Sorensen wrote:
> > On Sat, Apr 14, 2007 at 07:28:07PM +0200, Jean Delvare wrote:
> > > Otherwise it looks OK to me, I take the patch. If others have comments
> > > or objections, just speak up and submit incremental patches as needed.
> > >
> > > Now I would like to see platform code actually using this.
> >
> > Any idea how similar this new driver is to the scx200_i2c driver? As
> > far as I can tell that driver is already a bit banged i2c over gpio
> > lines.
>
> The major difference is that the implementation in scx200_i2c is
> hardware-specific, while the i2c-gpio driver is a generic one, so it's
> a lot better.
>
> What this means is that i2c-gpio obsoletes scx200_i2c, so I am inclined
> to delete scx200_i2c right away. I'm not even sure anyone still uses it
> now that scx200_acb has been fixed and is reported to work very well.
> If anyone really needs to do I2C over GPIO pins on SCx200, this should
> be reimplemented on top of i2c-gpio.

It would also force us to move the Geode GPIO pins to the generic
infrastructure, so that would be good. I say delete it - if anybody needs
that functionality, then we'll do it the right way.

Jordan