Home
last modified time | relevance | path

Searched refs:i2c_clk_rate (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/i2c/busses/
H A Di2c-imx.c573 unsigned int i2c_clk_rate) in i2c_imx_set_clk() argument
587 if (i2c_imx->cur_clk == i2c_clk_rate) in i2c_imx_set_clk()
590 i2c_imx->cur_clk = i2c_clk_rate; in i2c_imx_set_clk()
592 div = DIV_ROUND_UP(i2c_clk_rate, i2c_imx->bitrate); in i2c_imx_set_clk()
611 i2c_clk_rate / 2); in i2c_imx_set_clk()
615 i2c_clk_rate, div); in i2c_imx_set_clk()
/openbmc/u-boot/drivers/i2c/
H A Dmxc_i2c.c138 unsigned int i2c_clk_rate; in i2c_imx_get_clk() local
152 i2c_clk_rate = mxc_get_clock(MXC_I2C_CLK); in i2c_imx_get_clk()
153 div = (i2c_clk_rate + rate - 1) / rate; in i2c_imx_get_clk()
/openbmc/linux/drivers/clk/tegra/
H A Dclk-dfll.c277 unsigned long i2c_clk_rate; member
723 val = DIV_ROUND_UP(td->i2c_clk_rate, td->i2c_fs_rate * 8); in dfll_init_i2c_if()
1443 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks()