Home
last modified time | relevance | path

Searched refs:scl_rate (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/drivers/i3c/master/mipi-i3c-hci/
Dcmd_v2.c70 if (bus->scl_rate.i3c >= 12000000) in get_i3c_rate_idx()
72 if (bus->scl_rate.i3c > 8000000) in get_i3c_rate_idx()
74 if (bus->scl_rate.i3c > 6000000) in get_i3c_rate_idx()
76 if (bus->scl_rate.i3c > 4000000) in get_i3c_rate_idx()
78 if (bus->scl_rate.i3c > 2000000) in get_i3c_rate_idx()
87 if (bus->scl_rate.i2c >= 1000000) in get_i2c_rate_idx()
Dcmd_v1.c126 if (bus->scl_rate.i3c >= 12500000) in get_i3c_mode()
128 if (bus->scl_rate.i3c > 8000000) in get_i3c_mode()
130 if (bus->scl_rate.i3c > 6000000) in get_i3c_mode()
132 if (bus->scl_rate.i3c > 4000000) in get_i3c_mode()
134 if (bus->scl_rate.i3c > 2000000) in get_i3c_mode()
143 if (bus->scl_rate.i2c >= 1000000) in get_i2c_mode()
/linux-5.19.10/drivers/i3c/
Dmaster.c495 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i3c); in i3c_scl_frequency_show()
510 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i2c); in i2c_scl_frequency_show()
558 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()
559 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()
563 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()
564 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()
565 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()
566 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()
569 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()
570 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()
[all …]
/linux-5.19.10/drivers/i3c/master/
Di3c-master-cdns.c1106 pres_step = 1000000000UL / (bus->scl_rate.i3c * 4); in cdns_i3c_master_upd_i3c_scl_lim()
1236 pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; in cdns_i3c_master_bus_init()
1240 bus->scl_rate.i3c = sysclk_rate / ((pres + 1) * 4); in cdns_i3c_master_bus_init()
1247 max_i2cfreq = bus->scl_rate.i2c; in cdns_i3c_master_bus_init()
1253 bus->scl_rate.i2c = sysclk_rate / ((pres + 1) * 5); in cdns_i3c_master_bus_init()
1259 pres_step = 1000000000 / (bus->scl_rate.i3c * 4); in cdns_i3c_master_bus_init()
/linux-5.19.10/include/linux/i3c/
Dmaster.h339 } scl_rate; member