Skip to contentSkip to conversation

i2c, davinci: add i2c set speed

PATCH New Heiko Schocher 1 participant 1 message Sep 15, 2011 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c, davinci: add i2c set speed

Cc Paulraj Sandeep <[email protected]>
Cc Albert ARIBAUD <[email protected]>
---
 drivers/i2c/davinci_i2c.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/i2c/davinci_i2c.c +5 -0
index eee1cbd..5e3406d 100644
@@ -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)
 {
Signature · 1 line
1.7.6