[U-Boot] i2c driver for arm926ejs - at91sam9m10g45

Marek Vasut marex at denx.de
Fri Apr 20 11:48:10 CEST 2012


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


More information about the U-Boot mailing list