Searched refs:bus_freq_hz (Results 1 - 17 of 17) sorted by relevance
/linux-master/drivers/i2c/busses/ |
H A D | i2c-designware-common.c | 201 if (t->bus_freq_hz == supported_speeds[i]) 207 t->bus_freq_hz); 273 switch (t->bus_freq_hz) { 326 if (acpi_speed && t->bus_freq_hz) 327 t->bus_freq_hz = min(t->bus_freq_hz, acpi_speed); 328 else if (acpi_speed || t->bus_freq_hz) 329 t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed); 331 t->bus_freq_hz [all...] |
H A D | i2c-ls2x.c | 102 if (acpi_speed || t->bus_freq_hz) 103 t->bus_freq_hz = max(t->bus_freq_hz, acpi_speed); 105 t->bus_freq_hz = LS2X_I2C_FREQ_STD; 108 writew(LS2X_I2C_PCLK_FREQ / (5 * t->bus_freq_hz) - 1,
|
H A D | i2c-rk3x.c | 585 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ)) 586 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; 589 if (WARN_ON(t->bus_freq_hz < 1000)) 590 t->bus_freq_hz = 1000; 604 spec = rk3x_i2c_get_spec(t->bus_freq_hz); 627 scl_rate_khz = t->bus_freq_hz / 1000; 764 if (WARN_ON(t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ)) 765 t->bus_freq_hz = I2C_MAX_FAST_MODE_PLUS_FREQ; 768 if (WARN_ON(t->bus_freq_hz < 1000)) 769 t->bus_freq_hz [all...] |
H A D | i2c-riic.c | 291 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ) { 294 t->bus_freq_hz, I2C_MAX_FAST_MODE_FREQ); 316 total_ticks = DIV_ROUND_UP(rate, t->bus_freq_hz ?: 1); 333 (unsigned long)t->bus_freq_hz); 471 i2c_t.bus_freq_hz);
|
H A D | i2c-hisi.c | 397 total_cnt = DIV_ROUND_UP_ULL(ctlr->clk_rate_khz * HZ_PER_KHZ, ctlr->t.bus_freq_hz); 422 switch (ctlr->t.bus_freq_hz) { 436 ctlr->t.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; 514 i2c_freq_mode_string(ctlr->t.bus_freq_hz), hw_version);
|
H A D | i2c-npcm7xx.c | 1803 static int npcm_i2c_init_clk(struct npcm_i2c *bus, u32 bus_freq_hz) argument 1815 bus_freq_khz = bus_freq_hz / 1000; 1816 bus->bus_freq = bus_freq_hz; 1819 if (bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ) { 1834 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ) { 1858 else if (bus_freq_hz <= I2C_MAX_FAST_MODE_PLUS_FREQ) { 1887 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { 1906 if (bus_freq_hz >= I2C_MAX_FAST_MODE_FREQ) { 1927 u32 bus_freq_hz) 1934 bus_freq_hz < I2C_FREQ_MIN_H 1926 npcm_i2c_init_module(struct npcm_i2c *bus, enum i2c_mode mode, u32 bus_freq_hz) argument [all...] |
H A D | i2c-rcar.c | 282 .bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ, 316 if (t.bus_freq_hz > I2C_MAX_FAST_MODE_FREQ && priv->devtype >= I2C_RCAR_GEN4) 343 scgd = DIV_ROUND_UP(ick, t.bus_freq_hz ?: 1); 351 scl, t.bus_freq_hz, rate, round, cdf, scgd); 371 x = DIV_ROUND_UP(rate, t.bus_freq_hz ?: 1); 385 scl, t.bus_freq_hz, rate, round, cdf, priv->schd, priv->scld, priv->smd);
|
H A D | i2c-rzv2m.c | 112 total_pclks = pclk_hz / t.bus_freq_hz; 118 switch (t.bus_freq_hz) {
|
H A D | i2c-designware-pcidrv.c | 109 dev->timings.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; 158 dev->timings.bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ;
|
H A D | i2c-designware-master.c | 86 if (t->bus_freq_hz == I2C_MAX_FAST_MODE_PLUS_FREQ) { 137 t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ; 164 dev_dbg(dev->dev, "Bus speed: %s\n", i2c_freq_mode_string(t->bus_freq_hz)); 854 switch (t->bus_freq_hz) {
|
H A D | i2c-tegra.c | 644 switch (t->bus_freq_hz) { 651 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_FREQ) 687 t->bus_freq_hz * clk_multiplier); 726 udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->timings.bus_freq_hz)); 1266 i2c_dev->timings.bus_freq_hz);
|
H A D | i2c-gxp.c | 493 writeb(2000000 / drvdata->t.bus_freq_hz,
|
H A D | i2c-meson.c | 526 i2c->data->set_clk_div(i2c, timings.bus_freq_hz);
|
H A D | i2c-stm32f7.c | 670 t->bus_freq_hz = I2C_MAX_STANDARD_MODE_FREQ; 676 if (t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ) { 678 t->bus_freq_hz, I2C_MAX_FAST_MODE_PLUS_FREQ); 682 setup->speed_freq = t->bus_freq_hz;
|
H A D | i2c-at91-master.c | 77 2 * t->bus_freq_hz) - offset);
|
/linux-master/drivers/i2c/ |
H A D | i2c-core-base.c | 84 const char *i2c_freq_mode_string(u32 bus_freq_hz) argument 86 switch (bus_freq_hz) { 1925 i2c_parse_timing(dev, "clock-frequency", &t->bus_freq_hz, 1928 d = t->bus_freq_hz <= I2C_MAX_STANDARD_MODE_FREQ ? 1000 : 1929 t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120; 1932 d = t->bus_freq_hz <= I2C_MAX_FAST_MODE_FREQ ? 300 : 120;
|
/linux-master/include/linux/ |
H A D | i2c.h | 57 const char *i2c_freq_mode_string(u32 bus_freq_hz); 587 * @bus_freq_hz: the bus frequency in Hz 599 u32 bus_freq_hz; member in struct:i2c_timings
|
Completed in 369 milliseconds