Home
last modified time | relevance | path

Searched refs:i2c_spd (Results 1 – 2 of 2) sorted by relevance

/u-boot/drivers/i2c/
A Di2c-cortina.c15 static void set_speed(struct i2c_regs *regs, int i2c_spd) in set_speed() argument
23 switch (i2c_spd) { in set_speed()
48 int i2c_spd; in ca_i2c_set_bus_speed() local
51 i2c_spd = IC_SPEED_MODE_FAST_PLUS; in ca_i2c_set_bus_speed()
54 i2c_spd = IC_SPEED_MODE_FAST; in ca_i2c_set_bus_speed()
57 i2c_spd = IC_SPEED_MODE_STANDARD; in ca_i2c_set_bus_speed()
61 set_speed(priv->regs, i2c_spd); in ca_i2c_set_bus_speed()
A Ddesignware_i2c.c222 enum i2c_speed_mode i2c_spd; in calc_bus_speed() local
230 i2c_spd = IC_SPEED_MODE_HIGH; in calc_bus_speed()
232 i2c_spd = IC_SPEED_MODE_FAST_PLUS; in calc_bus_speed()
234 i2c_spd = IC_SPEED_MODE_FAST; in calc_bus_speed()
236 i2c_spd = IC_SPEED_MODE_STANDARD; in calc_bus_speed()
239 if (i2c_spd == IC_SPEED_MODE_HIGH) { in calc_bus_speed()
245 i2c_spd = IC_SPEED_MODE_FAST; in calc_bus_speed()
251 else if (i2c_spd >= IC_SPEED_MODE_HIGH) in calc_bus_speed()
257 if (i2c_spd == IC_SPEED_MODE_STANDARD) { in calc_bus_speed()
260 } else if (i2c_spd == IC_SPEED_MODE_HIGH) { in calc_bus_speed()
[all …]

Completed in 6 milliseconds