Searched refs:bus_freq_hz (Results 1 – 12 of 12) sorted by relevance
/drivers/i2c/busses/ |
D | i2c-designware-common.c | 198 if (t->bus_freq_hz == supported_speeds[i]) in i2c_dw_validate_speed() 204 t->bus_freq_hz); in i2c_dw_validate_speed() 270 switch (t->bus_freq_hz) { in i2c_dw_acpi_configure() 323 if (acpi_speed && t->bus_freq_hz) in i2c_dw_adjust_bus_speed() 324 t->bus_freq_hz = min(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed() 325 else if (acpi_speed || t->bus_freq_hz) in i2c_dw_adjust_bus_speed() 326 t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed); in i2c_dw_adjust_bus_speed() 328 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in i2c_dw_adjust_bus_speed()
|
D | i2c-rk3x.c | 585 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ)) in rk3x_i2c_v0_calc_timings() 586 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; in rk3x_i2c_v0_calc_timings() 589 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v0_calc_timings() 590 t->bus_freq_hz = 1000; in rk3x_i2c_v0_calc_timings() 604 spec = rk3x_i2c_get_spec(t->bus_freq_hz); in rk3x_i2c_v0_calc_timings() 627 scl_rate_khz = t->bus_freq_hz / 1000; in rk3x_i2c_v0_calc_timings() 764 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ)) in rk3x_i2c_v1_calc_timings() 765 t->bus_freq_hz = I2C_MAX_FAST_MODE_PLUS_FREQ; in rk3x_i2c_v1_calc_timings() 768 if (WARN_ON(t->bus_freq_hz < 1000)) in rk3x_i2c_v1_calc_timings() 769 t->bus_freq_hz = 1000; in rk3x_i2c_v1_calc_timings() [all …]
|
D | i2c-riic.c | 290 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()
|
D | i2c-npcm7xx.c | 1786 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz) in npcm_i2c_init_clk() argument 1798 bus_freq_khz = bus_freq_hz / 1000; in npcm_i2c_init_clk() 1799 bus->bus_freq = bus_freq_hz; in npcm_i2c_init_clk() 1802 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) { in npcm_i2c_init_clk() 1817 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1841 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) { in npcm_i2c_init_clk() 1870 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1889 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { in npcm_i2c_init_clk() 1910 u32 bus_freq_hz) in npcm_i2c_init_module() argument 1917 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 | 92 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()
|
D | i2c-designware-master.c | 81 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() 707 switch (t->bus_freq_hz) { in i2c_dw_configure_master()
|
D | i2c-rcar.c | 245 .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()
|
D | i2c-designware-platdrv.c | 241 t->bus_freq_hz = pdata->i2c_scl_freq; in dw_i2c_plat_probe()
|
D | i2c-stm32f7.c | 636 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()
|
D | i2c-meson.c | 472 meson_i2c_set_clk_div(i2c, timings.bus_freq_hz); in meson_i2c_probe()
|
D | i2c-at91-master.c | 79 2 * t->bus_freq_hz) - offset); in at91_calc_twi_clock()
|
/drivers/i2c/ |
D | i2c-core-base.c | 1741 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()
|