Searched refs:bus_freq_hz (Results 1 – 15 of 15) sorted by relevance
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-designware-common.c | 201 if (t->bus_freq_hz == supported_speeds[i]) in i2c_dw_validate_speed() 207 t->bus_freq_hz); in i2c_dw_validate_speed() 273 switch (t->bus_freq_hz) { in i2c_dw_acpi_configure() 326 if (acpi_speed && t->bus_freq_hz) in i2c_dw_adjust_bus_speed() 327 t->bus_freq_hz = min(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed() 328 else if (acpi_speed || t->bus_freq_hz) in i2c_dw_adjust_bus_speed() 329 t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed() 331 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_adjust_bus_speed()
|
D | i2c-rk3x.c | 582 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 …]
|
D | i2c-riic.c | 292 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ) { in riic_init_hw() 295 t->bus_freq_hz, I2C_MAX_FAST_MODE_FREQ); in riic_init_hw() 317 total_ticks = DIV_ROUND_UP(rate, t->bus_freq_hz); in riic_init_hw() 334 (unsigned long)t->bus_freq_hz); in riic_init_hw() 472 i2c_t.bus_freq_hz); in riic_i2c_probe()
|
D | i2c-hisi.c | 365 total_cnt = DIV_ROUND_UP_ULL(ctlr->clk_rate_khz * HZ_PER_KHZ, ctlr->t.bus_freq_hz); in hisi_i2c_set_scl() 390 switch (ctlr->t.bus_freq_hz) { in hisi_i2c_configure_bus() 404 ctlr->t.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in hisi_i2c_configure_bus() 481 i2c_freq_mode_string(ctlr->t.bus_freq_hz), hw_version); in hisi_i2c_probe()
|
D | i2c-npcm7xx.c | 1812 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz) in npcm_i2c_init_clk() argument 1824 bus_freq_khz = bus_freq_hz / 1000; in npcm_i2c_init_clk() 1825 bus->bus_freq = bus_freq_hz; in npcm_i2c_init_clk() 1828 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) { in npcm_i2c_init_clk() 1843 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1867 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) { in npcm_i2c_init_clk() 1896 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1915 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1936 u32 bus_freq_hz) in npcm_i2c_init_module() argument 1943 bus_freq_hz < I2C_FREQ_MIN_HZ || bus_freq_hz > I2C_FREQ_MAX_HZ) in npcm_i2c_init_module() [all …]
|
D | i2c-designware-pcidrv.c | 108 dev->timings.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in mfld_setup() 157 dev->timings.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in navi_amd_setup()
|
D | i2c-designware-master.c | 85 if (t->bus_freq_hz == I2C_MAX_FAST_MODE_PLUS_FREQ) { in i2c_dw_set_timings_master() 136 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_set_timings_master() 163 dev_dbg(dev->dev, "Bus speed: %s\n", i2c_freq_mode_string(t->bus_freq_hz)); in i2c_dw_set_timings_master() 798 switch (t->bus_freq_hz) { in i2c_dw_configure_master()
|
D | i2c-rzv2m.c | 105 total_pclks = pclk_hz / t.bus_freq_hz; in rzv2m_i2c_clock_calculate() 111 switch (t.bus_freq_hz) { in rzv2m_i2c_clock_calculate()
|
D | i2c-tegra.c | 655 switch (t->bus_freq_hz) { in tegra_i2c_init() 662 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ) in tegra_i2c_init() 698 t->bus_freq_hz * clk_multiplier); in tegra_i2c_init() 737 udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->timings.bus_freq_hz)); in tegra_i2c_disable_packet_mode() 1272 i2c_dev->timings.bus_freq_hz); in tegra_i2c_xfer_msg()
|
D | i2c-rcar.c | 248 .bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ, in rcar_i2c_clock_calculate() 319 if (scl <= t.bus_freq_hz) in rcar_i2c_clock_calculate() 327 scl, t.bus_freq_hz, rate, round, cdf, scgd); in rcar_i2c_clock_calculate()
|
D | i2c-stm32f7.c | 656 t->bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; in stm32f7_i2c_setup_timing() 662 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ) { in stm32f7_i2c_setup_timing() 664 t->bus_freq_hz, I2C_MAX_FAST_MODE_PLUS_FREQ); in stm32f7_i2c_setup_timing() 668 setup->speed_freq = t->bus_freq_hz; in stm32f7_i2c_setup_timing()
|
D | i2c-meson.c | 527 i2c->data->set_clk_div(i2c, timings.bus_freq_hz); in meson_i2c_probe()
|
D | i2c-at91-master.c | 78 2 * t->bus_freq_hz) - offset); in at91_calc_twi_clock()
|
/linux-6.1.9/drivers/i2c/ |
D | i2c-core-base.c | 80 const char *i2c_freq_mode_string(u32 bus_freq_hz) in i2c_freq_mode_string() argument 82 switch (bus_freq_hz) { in i2c_freq_mode_string() 1798 i2c_parse_timing(dev, "clock-frequency", &t->bus_freq_hz, in i2c_parse_fw_timings() 1801 d = t->bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ ? 1000 : in i2c_parse_fw_timings() 1802 t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120; in i2c_parse_fw_timings() 1805 d = t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120; in i2c_parse_fw_timings()
|
/linux-6.1.9/include/linux/ |
D | i2c.h | 57 const char *i2c_freq_mode_string(u32 bus_freq_hz); 601 u32 bus_freq_hz; member
|