public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  i2c driver for arm926ejs - at91sam9m10g45
@ 2012-04-19 15:08 Wilson Perez
  2012-04-20  9:48 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Wilson Perez @ 2012-04-19 15:08 UTC (permalink / raw)
  To: u-boot

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?

Thanks.

Wilson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] i2c driver for arm926ejs - at91sam9m10g45
  2012-04-19 15:08 [U-Boot] i2c driver for arm926ejs - at91sam9m10g45 Wilson Perez
@ 2012-04-20  9:48 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2012-04-20  9:48 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-20  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 15:08 [U-Boot] i2c driver for arm926ejs - at91sam9m10g45 Wilson Perez
2012-04-20  9:48 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox