[AVR32] ngw100 i2c-gpio tweaks
authorDavid Brownell <david-b@pacbell.net>
Tue, 25 Sep 2007 14:17:48 +0000 (07:17 -0700)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 11 Oct 2007 11:32:55 +0000 (13:32 +0200)
commit82c54f864fea26c4c44f27e2b4c4d9a811dde299
tree00e945ae58c132c94e4cc00254221005d3757343
parenta7ff43b808f077e7aae2772b2f1a06a39e6b0cf8
[AVR32] ngw100 i2c-gpio tweaks

Make the NGW100 bitbang i2c use open drain signaling.

Also, speed it up, so it's closer to 100 kHz ... the code paths seem
to be long enough that the udelay isn't dominating bit times.  The
peak bit rate I observed was around 125 kHz, but that's with large
delays (usually before ACK/NAK) which hold the overall rate down to
around 80 kHz (call it 100 usec/byte on average).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/boards/atngw100/setup.c