Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/i2c/busses/
Di2c-imx.c575 struct imx_i2c_clk_pair *i2c_clk_div = i2c_imx->hwdata->clk_div; in i2c_imx_set_clk() local
593 if (div < i2c_clk_div[0].div) in i2c_imx_set_clk()
595 else if (div > i2c_clk_div[i2c_imx->hwdata->ndivs - 1].div) in i2c_imx_set_clk()
598 for (i = 0; i2c_clk_div[i].div < div; i++) in i2c_imx_set_clk()
602 i2c_imx->ifdr = i2c_clk_div[i].val; in i2c_imx_set_clk()
610 i2c_imx->disable_delay = DIV_ROUND_UP(500000U * i2c_clk_div[i].div, in i2c_imx_set_clk()
617 i2c_clk_div[i].val, i2c_clk_div[i].div); in i2c_imx_set_clk()