Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpu/drm/stm/
Ddw_mipi_dsi-stm.c130 static int dsi_pll_get_clkout_khz(int clkin_khz, int idf, int ndiv, int odf) in dsi_pll_get_clkout_khz() argument
138 return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor); in dsi_pll_get_clkout_khz()
142 int clkin_khz, int clkout_khz, in dsi_pll_get_params() argument
149 if (clkin_khz <= 0 || clkout_khz <= 0) in dsi_pll_get_params()
159 n_min = ((fvco_min * i) / (2 * clkin_khz)) + 1; in dsi_pll_get_params()
160 n_max = (fvco_max * i) / (2 * clkin_khz); in dsi_pll_get_params()
173 n = DIV_ROUND_CLOSEST(i * o * clkout_khz, clkin_khz); in dsi_pll_get_params()
178 delta = dsi_pll_get_clkout_khz(clkin_khz, i, n, o) - in dsi_pll_get_params()