diff mbox

[U-Boot,V2,4/9] ARM: OMAP: I2C: Support New read, write and probe functions for OMAP3

Message ID 909318ff928ffd6e90e586c72c0468960884f66c.1492434551.git.aford173@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Adam Ford April 17, 2017, 1:09 p.m. UTC
New i2c_read, i2c_write and i2c_probe functions, tested on OMAP4
(4430/60/70), OMAP5 (5430) and AM335X (3359) were added in 960187ffa125(
"ARM: OMAP: I2C: New read, write and probe functions") but not tested
on OMAP3.  This patch will allow the updated drivers using device tree and
DM_I2C to operate on OMAP3.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Comments

Tom Rini May 10, 2017, 5:53 p.m. UTC | #1
On Mon, Apr 17, 2017 at 08:09:40AM -0500, Adam Ford wrote:

> New i2c_read, i2c_write and i2c_probe functions, tested on OMAP4
> (4430/60/70), OMAP5 (5430) and AM335X (3359) were added in 960187ffa125(
> "ARM: OMAP: I2C: New read, write and probe functions") but not tested
> on OMAP3.  This patch will allow the updated drivers using device tree and
> DM_I2C to operate on OMAP3.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
> 
> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
> index 26996e9..a23737a 100644

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index 26996e9..a23737a 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -910,6 +910,7 @@  static const struct dm_i2c_ops omap_i2c_ops = {
 };
 
 static const struct udevice_id omap_i2c_ids[] = {
+	{ .compatible = "ti,omap3-i2c" },
 	{ .compatible = "ti,omap4-i2c" },
 	{ }
 };