summaryrefslogtreecommitdiff
path: root/drivers/i2c/davinci_i2c.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-09-14 19:25:12 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:00:56 +0200
commit49d6da6032c2d55f7912ffedfbf222b6b4511b8c (patch)
treebae76161aa328ff6edc39c1b70059a1244229a58 /drivers/i2c/davinci_i2c.c
parent2d76da246c70ff01592b19e2aa16323a4bbdeb05 (diff)
downloadu-boot-imx-49d6da6032c2d55f7912ffedfbf222b6b4511b8c.zip
u-boot-imx-49d6da6032c2d55f7912ffedfbf222b6b4511b8c.tar.gz
u-boot-imx-49d6da6032c2d55f7912ffedfbf222b6b4511b8c.tar.bz2
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.c5
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)
{