Searched refs:scl_rate (Results 1 – 3 of 3) sorted by relevance
476 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i3c); in i3c_scl_frequency_show()491 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i2c); in i2c_scl_frequency_show()539 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()540 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()544 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()545 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()546 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()547 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()550 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()551 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()[all …]
1098 pres_step = 1000000000UL / (bus->scl_rate.i3c * 4); in cdns_i3c_master_upd_i3c_scl_lim()1214 pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; in cdns_i3c_master_bus_init()1218 bus->scl_rate.i3c = sysclk_rate / ((pres + 1) * 4); in cdns_i3c_master_bus_init()1225 max_i2cfreq = bus->scl_rate.i2c; in cdns_i3c_master_bus_init()1231 bus->scl_rate.i2c = sysclk_rate / ((pres + 1) * 5); in cdns_i3c_master_bus_init()1237 pres_step = 1000000000 / (bus->scl_rate.i3c * 4); in cdns_i3c_master_bus_init()
340 } scl_rate; member