[U-Boot] i2c, davinci: add i2c set speed

Submitted by Heiko Schocher on Sept. 15, 2011, 5:25 a.m.

Details

Message ID 1316064312-4982-1-git-send-email-hs@denx.de
State Accepted
Commit 49d6da6032c2d55f7912ffedfbf222b6b4511b8c
Headers show

Commit Message

Heiko Schocher Sept. 15, 2011, 5:25 a.m.
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
---
 drivers/i2c/davinci_i2c.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c
index eee1cbd..5e3406d 100644
--- a/drivers/i2c/davinci_i2c.c
+++ b/drivers/i2c/davinci_i2c.c
@@ -119,6 +119,11 @@  void i2c_init(int speed, int slaveadd)
 	udelay(1000);
 }
 
+int i2c_set_bus_speed(unsigned int speed)
+{
+	i2c_init(speed, CONFIG_SYS_I2C_SLAVE);
+	return 0;
+}
 
 int i2c_probe(u_int8_t chip)
 {