Home
last modified time | relevance | path

Searched refs:bus_clk_rate (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/
Datmel-i2c.c287 static inline size_t atmel_i2c_wake_token_sz(u32 bus_clk_rate) in atmel_i2c_wake_token_sz() argument
289 u32 no_of_bits = DIV_ROUND_UP(TWLO_USEC * bus_clk_rate, USEC_PER_SEC); in atmel_i2c_wake_token_sz()
332 u32 bus_clk_rate; in atmel_i2c_probe() local
339 bus_clk_rate = i2c_acpi_find_bus_speed(&client->adapter->dev); in atmel_i2c_probe()
340 if (!bus_clk_rate) { in atmel_i2c_probe()
342 "clock-frequency", &bus_clk_rate); in atmel_i2c_probe()
349 if (bus_clk_rate > 1000000L) { in atmel_i2c_probe()
351 bus_clk_rate); in atmel_i2c_probe()
367 i2c_priv->wake_token_sz = atmel_i2c_wake_token_sz(bus_clk_rate); in atmel_i2c_probe()
/drivers/i2c/busses/
Di2c-altera.c83 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()
419 &idev->bus_clk_rate); in altr_i2c_probe()
422 idev->bus_clk_rate = I2C_MAX_STANDARD_MODE_FREQ; /* default clock rate */ in altr_i2c_probe()
425 if (idev->bus_clk_rate > I2C_MAX_FAST_MODE_FREQ) { in altr_i2c_probe()
427 idev->bus_clk_rate); in altr_i2c_probe()
Di2c-microchip-corei2c.c113 u32 bus_clk_rate; member
188 u32 divisor = clk_rate / idev->bus_clk_rate; in mchp_corei2c_init()
394 &idev->bus_clk_rate); in mchp_corei2c_probe()
395 if (ret || !idev->bus_clk_rate) { in mchp_corei2c_probe()
397 idev->bus_clk_rate = 100000; in mchp_corei2c_probe()
400 if (idev->bus_clk_rate > 400000) in mchp_corei2c_probe()
403 idev->bus_clk_rate); in mchp_corei2c_probe()
Di2c-lpc2k.c349 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()
Di2c-axxia.c146 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()
Di2c-bcm2835.c414 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()
/drivers/interconnect/qcom/
Dicc-rpm.c392 if (qp->bus_clk_rate[i] == rate) in qcom_icc_set()
401 qp->bus_clk_rate[i] = rate; in qcom_icc_set()
448 qp->bus_clk_rate = devm_kcalloc(dev, cd_num, sizeof(*qp->bus_clk_rate), in qnoc_probe()
450 if (!qp->bus_clk_rate) in qnoc_probe()
Dicc-rpm.h39 u64 *bus_clk_rate; member