Dear Wilson Perez, > I'm interested in the i2c driver for the arm926ejs cpu and at91sam9m10g45 > board. I'm dealing with the issue that when enabling CONFIG_SOFT_I2C it > needs proper definitions for I2C_INIT, I2C_SDA, I2C_READ, etc. and when > enabling CONFIG_HARD_I2C the build fails with undefined references: > i2c_init, i2c_read, i2c_write, i2c_probe. > > Can someone please point me in the right direction?
Well of course, you need to implement that API (i2c_read/write/probe/init() calls) if you want hardware-assisted I2c, check your CPU datasheet. If you implement only soft-spi, you need to implement I2C_SDA etc functions, which flip the GPIO lines that emulate the SPI. > > Thanks. > > Wilson Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot