Lines Matching refs:speed
26 uint speed; member
88 uint speed) in _davinci_i2c_setspeed() argument
94 div = (CONFIG_SYS_HZ_CLOCK / ((psc + 1) * speed)) - 10; in _davinci_i2c_setspeed()
103 uint speed, int slaveadd) in _davinci_i2c_init() argument
110 _davinci_i2c_setspeed(i2c_base, speed); in _davinci_i2c_init()
363 static uint davinci_i2c_setspeed(struct i2c_adapter *adap, uint speed) in davinci_i2c_setspeed() argument
368 adap->speed = speed; in davinci_i2c_setspeed()
369 ret = _davinci_i2c_setspeed(i2c_base, speed); in davinci_i2c_setspeed()
374 static void davinci_i2c_init(struct i2c_adapter *adap, int speed, in davinci_i2c_init() argument
379 adap->speed = speed; in davinci_i2c_init()
380 _davinci_i2c_init(i2c_base, speed, slaveadd); in davinci_i2c_init()
459 static int davinci_i2c_set_speed(struct udevice *dev, uint speed)
463 i2c_bus->speed = speed;
464 return _davinci_i2c_setspeed(i2c_bus->regs, speed);
474 i2c_bus->speed = 100000;
475 _davinci_i2c_init(i2c_bus->regs, i2c_bus->speed, 0);