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.

Read/Write at u-boot level for passive device

Other Parts Discussed in Thread: DM3730

Hi All

We are working on DM3730 based custom board on which we want to access a passive device (which is having no registers) through I2C interface , at u-boot level.

At  kernel level we are able to perform write and read operations using i2c_master_send and i2c_master_recv function calls respectively .


At u-boot level we tried to access the device through i2c_read_byte and i2c_write_byte function calls , but both requires a specific register address to perform read and write operations

We have by passed the register address in i2c_write_byte function , after which write is successful. But We are not able to read the correct values  through read function .

Please tell us how can we perform read and write operations for such a device .

Is there any other function calls present in u-boot which doesn't utilize slave's registers.

Thanks

Harsh

  • HI Harsh,

    Have you found any solution to this prob? I  am also stuck with almost a similar problem.

    Porting U boot on to beaglebone and would like to write in to i2c device (EEPROM)  at u boot level.

    i2c mw command does not seem to work. I am not able to see the new values when I try reading with i2c md command.

    Any help higly welcome!!

    Thanks

    Saketha