Home
last modified time | relevance | path

Searched refs:clk_cycle (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/i2c/busses/
Di2c-exynos5.c295 int div, clk_cycle, temp; in exynos5_i2c_set_timing() local
359 clk_cycle = temp / (div + 1) - 2; in exynos5_i2c_set_timing()
360 if (temp < 4 || div >= 256 || clk_cycle < 2) { in exynos5_i2c_set_timing()
370 t_scl_l = clk_cycle * 535 / 1000; in exynos5_i2c_set_timing()
372 t_scl_l = clk_cycle * 64 / 100; in exynos5_i2c_set_timing()
374 t_scl_l = clk_cycle * 62 / 100; in exynos5_i2c_set_timing()
378 t_scl_h = clk_cycle - t_scl_l; in exynos5_i2c_set_timing()
384 t_sr_release = clk_cycle; in exynos5_i2c_set_timing()
Di2c-uniphier.c44 unsigned int clk_cycle; member
292 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init()
347 priv->clk_cycle = clk_rate / bus_speed; in uniphier_i2c_probe()
Di2c-imx-lpi2c.c210 unsigned int clk_rate, clk_cycle, clkhi, clklo; in lpi2c_imx_config() local
224 clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate) in lpi2c_imx_config()
226 clkhi = DIV_ROUND_UP(clk_cycle, I2C_CLK_RATIO + 1); in lpi2c_imx_config()
227 clklo = clk_cycle - clkhi; in lpi2c_imx_config()
Di2c-uniphier-f.c89 unsigned int clk_cycle; member
478 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init()
552 priv->clk_cycle = clk_rate / bus_speed; in uniphier_fi2c_probe()