Forum Discussion
Altera_Forum
Honored Contributor
20 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- I see only "ioctl" in i2ctools. Could I using "read" "write" method?[/b] --- Quote End --- you can use ioctl to read/write those devices, the command you need is I2C_RDWR. <div class='quotetop'>QUOTE </div> --- Quote Start --- How can I access 3-different types of i2c chips via oc-i2c drivers?[/b] --- Quote End --- You can have different utilities. The device address is specified in the message passed with this ioctl command. <div class='quotetop'>QUOTE </div> --- Quote Start --- Could I modify i2c-oc.c and i2c-algo-oc.c to implement or add new 3 i2c-eeprom.c, i2c-fram.c and i2c-realtime.c[/b] --- Quote End --- If your kernel does not utilize those devices, you don't have to implement something in kernel.