From: Heiko Schocher Date: Wed, 14 Sep 2011 19:25:12 +0000 (+0000) Subject: i2c, davinci: add i2c set speed X-Git-Tag: v2011.12-rc1~690 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49d6da6032c2d55f7912ffedfbf222b6b4511b8c;p=oweals%2Fu-boot.git i2c, davinci: add i2c set speed Signed-off-by: Heiko Schocher Cc: Paulraj Sandeep Cc: Albert ARIBAUD Signed-off-by: Sandeep Paulraj --- diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c index eee1cbd25d..5e3406dc8f 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) {