Searched refs:bus_clk_rate (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/crypto/ |
D | atmel-i2c.c | 279 static inline size_t atmel_i2c_wake_token_sz(u32 bus_clk_rate) in atmel_i2c_wake_token_sz() argument 281 u32 no_of_bits = DIV_ROUND_UP(TWLO_USEC * bus_clk_rate, USEC_PER_SEC); in atmel_i2c_wake_token_sz() 324 u32 bus_clk_rate; in atmel_i2c_probe() local 331 bus_clk_rate = i2c_acpi_find_bus_speed(&client->adapter->dev); in atmel_i2c_probe() 332 if (!bus_clk_rate) { in atmel_i2c_probe() 334 "clock-frequency", &bus_clk_rate); in atmel_i2c_probe() 341 if (bus_clk_rate > 1000000L) { in atmel_i2c_probe() 343 bus_clk_rate); in atmel_i2c_probe() 359 i2c_priv->wake_token_sz = atmel_i2c_wake_token_sz(bus_clk_rate); in atmel_i2c_probe()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-altera.c | 83 u32 bus_clk_rate; member 139 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in altr_i2c_init() 145 if (idev->bus_clk_rate <= I2C_MAX_STANDARD_MODE_FREQ) { in altr_i2c_init() 159 idev->bus_clk_rate, clk_mhz, divisor); in altr_i2c_init() 420 &idev->bus_clk_rate); in altr_i2c_probe() 423 idev->bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; /* default clock rate */ in altr_i2c_probe() 426 if (idev->bus_clk_rate > I2C_MAX_FAST_MODE_FREQ) { in altr_i2c_probe() 428 idev->bus_clk_rate); in altr_i2c_probe()
|
D | i2c-lpc2k.c | 349 u32 bus_clk_rate; in i2c_lpc2k_probe() local 393 &bus_clk_rate); in i2c_lpc2k_probe() 395 bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; in i2c_lpc2k_probe() 405 clkrate = clkrate / bus_clk_rate; in i2c_lpc2k_probe() 406 if (bus_clk_rate <= I2C_MAX_STANDARD_MODE_FREQ) in i2c_lpc2k_probe() 408 else if (bus_clk_rate <= I2C_MAX_FAST_MODE_FREQ) in i2c_lpc2k_probe()
|
D | i2c-axxia.c | 146 u32 bus_clk_rate; member 178 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init() 187 idev->bus_clk_rate, clk_mhz, divisor); in axxia_i2c_init() 202 if (idev->bus_clk_rate <= I2C_MAX_STANDARD_MODE_FREQ) { in axxia_i2c_init() 762 of_property_read_u32(np, "clock-frequency", &idev->bus_clk_rate); in axxia_i2c_probe() 763 if (idev->bus_clk_rate == 0) in axxia_i2c_probe() 764 idev->bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; /* default clock rate */ in axxia_i2c_probe()
|
D | i2c-bcm2835.c | 414 u32 bus_clk_rate; in bcm2835_i2c_probe() local 441 &bus_clk_rate); in bcm2835_i2c_probe() 445 bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; in bcm2835_i2c_probe() 448 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe()
|
D | i2c-tegra.c | 275 u32 bus_clk_rate; member 643 switch (i2c_dev->bus_clk_rate) { in tegra_i2c_init() 650 if (i2c_dev->bus_clk_rate > I2C_MAX_FAST_MODE_FREQ) in tegra_i2c_init() 686 i2c_dev->bus_clk_rate * clk_multiplier); in tegra_i2c_init() 725 udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->bus_clk_rate)); in tegra_i2c_disable_packet_mode() 1255 i2c_dev->bus_clk_rate); in tegra_i2c_xfer_msg() 1635 &i2c_dev->bus_clk_rate); in tegra_i2c_parse_dt() 1637 i2c_dev->bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; in tegra_i2c_parse_dt()
|