This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x: U-boot i2c_read from EEPROM returns wrong values

Other Parts Discussed in Thread: PCF8574

Hi,

I work on Sitara am335x-evmsk with ti-processor-sdk-linux-am335x-evm-02.00.00.00.

During boot phase, I want to read board version value from PCF8574 device at address 0x21 via i2c ,so I use i2c_read ()  with the following params:

i2c_read(0, 0x21, 1,buffer, 2); but the function always return value 0. But when the boot phase end and kernel is up, I operate i2cget() with this params:

i2cget -f -y 0 0x21 and I receive correct value.

What can be the problem? How to receive to correct value in the boot phase?

Thanks Oded.