Home
last modified time | relevance | path

Searched refs:bus_freq_hz (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-designware-common.c197 if (t->bus_freq_hz == supported_speeds[i]) in i2c_dw_validate_speed()
203 t->bus_freq_hz); in i2c_dw_validate_speed()
269 switch (t->bus_freq_hz) { in i2c_dw_acpi_configure()
322 if (acpi_speed && t->bus_freq_hz) in i2c_dw_adjust_bus_speed()
323 t->bus_freq_hz = min(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed()
324 else if (acpi_speed || t->bus_freq_hz) in i2c_dw_adjust_bus_speed()
325 t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed()
327 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_adjust_bus_speed()
Di2c-rk3x.c582 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ)) in rk3x_i2c_v0_calc_timings()
583 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in rk3x_i2c_v0_calc_timings()
586 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v0_calc_timings()
587 t->bus_freq_hz = 1000; in rk3x_i2c_v0_calc_timings()
601 spec = rk3x_i2c_get_spec(t->bus_freq_hz); in rk3x_i2c_v0_calc_timings()
624 scl_rate_khz = t->bus_freq_hz / 1000; in rk3x_i2c_v0_calc_timings()
762 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ)) in rk3x_i2c_v1_calc_timings()
763 t->bus_freq_hz = I2C_MAX_FAST_MODE_PLUS_FREQ; in rk3x_i2c_v1_calc_timings()
766 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v1_calc_timings()
767 t->bus_freq_hz = 1000; in rk3x_i2c_v1_calc_timings()
[all …]
Di2c-riic.c290 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ) { in riic_init_hw()
293 t->bus_freq_hz, I2C_MAX_FAST_MODE_FREQ); in riic_init_hw()
315 total_ticks = DIV_ROUND_UP(rate, t->bus_freq_hz); in riic_init_hw()
332 (unsigned long)t->bus_freq_hz); in riic_init_hw()
453 i2c_t.bus_freq_hz); in riic_i2c_probe()
Di2c-npcm7xx.c1778 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz) in npcm_i2c_init_clk() argument
1790 bus_freq_khz = bus_freq_hz / 1000; in npcm_i2c_init_clk()
1791 bus->bus_freq = bus_freq_hz; in npcm_i2c_init_clk()
1794 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) { in npcm_i2c_init_clk()
1809 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk()
1833 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) { in npcm_i2c_init_clk()
1862 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk()
1881 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk()
1902 u32 bus_freq_hz) in npcm_i2c_init_module() argument
1909 bus_freq_hz < I2C_FREQ_MIN_HZ || bus_freq_hz > I2C_FREQ_MAX_HZ) in npcm_i2c_init_module()
[all …]
Di2c-designware-pcidrv.c92 dev->timings.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in mfld_setup()
227 dev->timings.bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_pci_probe()
Di2c-designware-master.c81 if (t->bus_freq_hz == 1000000) { in i2c_dw_set_timings_master()
132 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_set_timings_master()
683 switch (t->bus_freq_hz) { in i2c_dw_configure_master()
Di2c-rcar.c245 .bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ, in rcar_i2c_clock_calculate()
316 if (scl <= t.bus_freq_hz) in rcar_i2c_clock_calculate()
324 scl, t.bus_freq_hz, rate, round, cdf, scgd); in rcar_i2c_clock_calculate()
Di2c-designware-platdrv.c240 t->bus_freq_hz = pdata->i2c_scl_freq; in dw_i2c_plat_probe()
Di2c-stm32f7.c636 t->bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in stm32f7_i2c_setup_timing()
642 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ) { in stm32f7_i2c_setup_timing()
644 t->bus_freq_hz, I2C_MAX_FAST_MODE_PLUS_FREQ); in stm32f7_i2c_setup_timing()
648 setup->speed_freq = t->bus_freq_hz; in stm32f7_i2c_setup_timing()
Di2c-meson.c478 meson_i2c_set_clk_div(i2c, timings.bus_freq_hz); in meson_i2c_probe()
Di2c-at91-master.c79 2 * t->bus_freq_hz) - offset); in at91_calc_twi_clock()
/kernel/linux/linux-5.10/drivers/i2c/
Di2c-core-base.c1741 i2c_parse_timing(dev, "clock-frequency", &t->bus_freq_hz, in i2c_parse_fw_timings()
1744 d = t->bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ ? 1000 : in i2c_parse_fw_timings()
1745 t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120; in i2c_parse_fw_timings()
1748 d = t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120; in i2c_parse_fw_timings()
/kernel/linux/linux-5.10/include/linux/
Di2c.h577 u32 bus_freq_hz; member