Home
last modified time | relevance | path

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

/linux/drivers/i3c/master/mipi-i3c-hci/
H A 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()
H A Dcmd_v1.c126 if (bus->scl_rate.i3c > 8000000) in get_i3c_mode()
128 if (bus->scl_rate.i3c > 6000000) in get_i3c_mode()
130 if (bus->scl_rate.i3c > 4000000) in get_i3c_mode()
132 if (bus->scl_rate.i3c > 2000000) in get_i3c_mode()
141 if (bus->scl_rate.i2c >= 1000000) in get_i2c_mode()
/linux/drivers/i3c/
H A Dmaster.c540 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i3c); in i3c_scl_frequency_show()
555 ret = sprintf(buf, "%ld\n", i3cbus->scl_rate.i2c); in i2c_scl_frequency_show()
686 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()
687 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()
691 if (!i3cbus->scl_rate.i3c) in i3c_bus_set_mode()
692 i3cbus->scl_rate.i3c = I3C_BUS_TYP_I3C_SCL_RATE; in i3c_bus_set_mode()
693 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()
694 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()
697 if (!i3cbus->scl_rate.i2c) in i3c_bus_set_mode()
698 i3cbus->scl_rate.i2c = max_i2c_scl_rate; in i3c_bus_set_mode()
[all …]
/linux/drivers/i3c/master/
H A 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()
H A Dsvc-i3c-master.c567 odbaud = DIV_ROUND_UP(fclk_rate, bus->scl_rate.i2c * (2 + 2 * ppbaud)) - 1; in svc_i3c_master_set_speed()
611 i2c_period_ns = DIV_ROUND_UP(1000000000, bus->scl_rate.i2c); in svc_i3c_master_bus_init()
612 i2c_scl_rate = bus->scl_rate.i2c; in svc_i3c_master_bus_init()
613 i3c_scl_rate = bus->scl_rate.i3c; in svc_i3c_master_bus_init()
H A Ddw-i3c-master.c575 lcnt = DIV_ROUND_UP(core_rate, master->base.bus.scl_rate.i3c) - hcnt; in dw_i3c_clk_cfg()
/linux/include/linux/i3c/
H A Dmaster.h362 } scl_rate; member