Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-exynos5.c282 int div, clk_cycle, temp; in exynos5_i2c_set_timing() local
304 clk_cycle = temp / (div + 1) - 2; in exynos5_i2c_set_timing()
305 if (temp < 4 || div >= 256 || clk_cycle < 2) { in exynos5_i2c_set_timing()
311 t_scl_l = clk_cycle / 2; in exynos5_i2c_set_timing()
312 t_scl_h = clk_cycle / 2; in exynos5_i2c_set_timing()
318 t_sr_release = clk_cycle; in exynos5_i2c_set_timing()
Di2c-uniphier.c44 unsigned int clk_cycle; member
295 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init()
355 priv->clk_cycle = clk_rate / bus_speed; in uniphier_i2c_probe()
Di2c-imx-lpi2c.c204 unsigned int clk_rate, clk_cycle; in lpi2c_imx_config() local
217 clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate) in lpi2c_imx_config()
219 clkhi = (clk_cycle + I2C_CLK_RATIO) / (I2C_CLK_RATIO + 1); in lpi2c_imx_config()
220 clklo = clk_cycle - clkhi; in lpi2c_imx_config()
Di2c-uniphier-f.c89 unsigned int clk_cycle; member
481 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init()
560 priv->clk_cycle = clk_rate / bus_speed; in uniphier_fi2c_probe()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0022_linux_drivers_i2c.patch1217 +/* CLKLO = (1 - I2C_CLK_RATIO) * clk_cycle, SETHOLD = CLKHI, DATAVD = CLKHI/2
1218 + CLKHI = I2C_CLK_RATIO * clk_cycle */
1222 - unsigned int clk_rate, clk_cycle;
1224 + unsigned int clk_rate, clk_cycle, clkhi, clklo;
1243 clk_cycle = clk_rate / ((1 << prescale) * lpi2c_imx->bitrate)
1245 - clkhi = (clk_cycle + I2C_CLK_RATIO) / (I2C_CLK_RATIO + 1);
1247 + clkhi = clk_cycle * I2C_CLK_RATIO;
1248 clklo = clk_cycle - clkhi;