]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6dec11f084c49f902a8f67247a4011f8b6fc489c
tree00e945ae58c132c94e4cc00254221005d3757343
parent54c8c403e8e8272be0e72148e097f4b6b2ee5441
[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