Home
last modified time | relevance | path

Searched refs:clks_per_cycle (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-sh_mobile.c293 unsigned long clks_per_cycle; in sh_mobile_i2c_v2_init() local
296 clks_per_cycle = clk_get_rate(pd->clk) / pd->bus_speed; in sh_mobile_i2c_v2_init()
297 pd->iccl = DIV_ROUND_UP(clks_per_cycle * 5 / 9 - 1, pd->clks_per_count); in sh_mobile_i2c_v2_init()
298 pd->icch = DIV_ROUND_UP(clks_per_cycle * 4 / 9 - 5, pd->clks_per_count); in sh_mobile_i2c_v2_init()
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-sh_mobile.c293 unsigned long clks_per_cycle; in sh_mobile_i2c_v2_init() local
296 clks_per_cycle = clk_get_rate(pd->clk) / pd->bus_speed; in sh_mobile_i2c_v2_init()
297 pd->iccl = DIV_ROUND_UP(clks_per_cycle * 5 / 9 - 1, pd->clks_per_count); in sh_mobile_i2c_v2_init()
298 pd->icch = DIV_ROUND_UP(clks_per_cycle * 4 / 9 - 5, pd->clks_per_count); in sh_mobile_i2c_v2_init()

Completed in 4 milliseconds