Lines Matching +full:2 +full:nd

15  * enable - clk_enable writes nd, fracr parameters and enables PLL
17 * clk->rate = parent->rate * ((nd + 1) + (fracr / 2^22))
62 u8 nd; member
95 * reset and enable have to be done in 2 separated writes in clk_audio_pll_frac_enable()
102 AT91_PMC_AUDIO_PLL_ND(frac->nd)); in clk_audio_pll_frac_enable()
138 /* do it in 2 separated writes */ in clk_audio_pll_frac_disable()
160 unsigned long nd, unsigned long fracr) in clk_audio_pll_fout() argument
170 return parent_rate * (nd + 1) + fr; in clk_audio_pll_fout()
179 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate()
181 pr_debug("A PLL: %s, fout = %lu (nd = %u, fracr = %lu)\n", __func__, in clk_audio_pll_frac_recalc_rate()
182 fout, frac->nd, (unsigned long)frac->fracr); in clk_audio_pll_frac_recalc_rate()
218 unsigned long *nd, in clk_audio_pll_frac_compute_frac() argument
231 *nd = tmp - 1; in clk_audio_pll_frac_compute_frac()
247 unsigned long fracr, nd; in clk_audio_pll_frac_determine_rate() local
259 &nd, &fracr); in clk_audio_pll_frac_determine_rate()
263 req->rate = clk_audio_pll_fout(req->best_parent_rate, nd, fracr); in clk_audio_pll_frac_determine_rate()
267 pr_debug("A PLL: %s, best_rate = %lu (nd = %lu, fracr = %lu)\n", in clk_audio_pll_frac_determine_rate()
268 __func__, req->rate, nd, fracr); in clk_audio_pll_frac_determine_rate()
291 * tmp_qd goes from 1 to 31 and div is either 2 or 3. in clk_audio_pll_pad_round_rate()
293 * be found with (tmp_qd, div) = (2, 6) or (3, 4)), we remove any loop in clk_audio_pll_pad_round_rate()
294 * for a rate divisor when div is 2 and tmp_qd is a multiple of 3. in clk_audio_pll_pad_round_rate()
296 * would miss some rate divisor that aren't reachable with div being 2 in clk_audio_pll_pad_round_rate()
298 * tmp_qd is even so we skip it because we think div 2 could make this in clk_audio_pll_pad_round_rate()
302 for (div = 2; div <= 3; div++) { in clk_audio_pll_pad_round_rate()
303 if (div == 2 && tmp_qd % 3 == 0) in clk_audio_pll_pad_round_rate()
368 unsigned long fracr, nd; in clk_audio_pll_frac_set_rate() local
377 ret = clk_audio_pll_frac_compute_frac(rate, parent_rate, &nd, &fracr); in clk_audio_pll_frac_set_rate()
381 frac->nd = nd; in clk_audio_pll_frac_set_rate()
404 apad_ck->qdaudio = tmp_div / 2; in clk_audio_pll_pad_set_rate()
405 apad_ck->div = 2; in clk_audio_pll_pad_set_rate()