Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/clk/ti/
Dfapll.c362 u32 post_div_m; in ti_fapll_synth_get_frac_rate() local
365 post_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M; in ti_fapll_synth_get_frac_rate()
366 frac_rate = current_rate * post_div_m; in ti_fapll_synth_get_frac_rate()
375 u32 post_div_m, synth_int_div = 0, synth_frac_div = 0, v; in ti_fapll_synth_set_frac_rate() local
377 post_div_m = DIV_ROUND_UP_ULL((u64)parent_rate * SYNTH_PHASE_K, rate); in ti_fapll_synth_set_frac_rate()
378 post_div_m = post_div_m / SYNTH_MAX_INT_DIV; in ti_fapll_synth_set_frac_rate()
379 if (post_div_m > SYNTH_MAX_DIV_M) in ti_fapll_synth_set_frac_rate()
381 if (!post_div_m) in ti_fapll_synth_set_frac_rate()
382 post_div_m = 1; in ti_fapll_synth_set_frac_rate()
384 for (; post_div_m < SYNTH_MAX_DIV_M; post_div_m++) { in ti_fapll_synth_set_frac_rate()
[all …]