mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-02 20:41:31 +00:00
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>
This commit is contained in:
parent
2d76da246c
commit
49d6da6032
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ void i2c_init(int speed, int slaveadd)
|
||||||
udelay(1000);
|
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)
|
int i2c_probe(u_int8_t chip)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue