Sergey Lapin <[EMAIL PROTECTED]> wrote:
> But I'm unable to read proper values from lines - they always
> return 0s. Any ideas on fixing?
> Linux i2c-gpio driver works perfectly.

Please try this patch:

http://www.nabble.com/-PATCH--soft_i2c%3A-Pull-SDA-high-before-reading-p17270563.html

You shouldn't need to do anything in the I2C_ACTIVE and I2C_TRISTATE
hooks since the PIO is properly configured in open drain mode.

Haavard

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to