diff options
author | Heiko Schocher <hs@denx.de> | 2011-09-14 19:25:12 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-30 20:00:56 (GMT) |
commit | 49d6da6032c2d55f7912ffedfbf222b6b4511b8c (patch) | |
tree | bae76161aa328ff6edc39c1b70059a1244229a58 /drivers/i2c/davinci_i2c.c | |
parent | 2d76da246c70ff01592b19e2aa16323a4bbdeb05 (diff) | |
download | u-boot-49d6da6032c2d55f7912ffedfbf222b6b4511b8c.tar.xz |
i2c, davinci: add i2c set speed
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Paulraj Sandeep <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'drivers/i2c/davinci_i2c.c')
-rw-r--r-- | drivers/i2c/davinci_i2c.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |