Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/
H A Dclk-axi-clkgen.c132 unsigned long fract_shift = 0; in axi_clkgen_calc_params() local
147 fvco_min_fract = limits->fvco_min << fract_shift; in axi_clkgen_calc_params()
148 fvco_max_fract = limits->fvco_max << fract_shift; in axi_clkgen_calc_params()
151 m_max = min_t(unsigned long, fvco_max_fract * d_max / fin, 64 << fract_shift); in axi_clkgen_calc_params()
161 dout = clamp_t(unsigned long, dout, 1, 128 << fract_shift); in axi_clkgen_calc_params()
166 *best_m = m << (3 - fract_shift); in axi_clkgen_calc_params()
167 *best_dout = dout << (3 - fract_shift); in axi_clkgen_calc_params()
175 if (fract_shift == 0) { in axi_clkgen_calc_params()
176 fract_shift = 3; in axi_clkgen_calc_params()