Lines Matching defs:fll
186 rate = wm8994->fll[0].out;
191 rate = wm8994->fll[1].out;
2122 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll,
2131 fll->clk_ref_div = 0;
2133 fll->clk_ref_div++;
2136 if (fll->clk_ref_div > 3)
2139 pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in);
2142 fll->outdiv = 3;
2143 while (freq_out * (fll->outdiv + 1) < 90000000) {
2144 fll->outdiv++;
2145 if (fll->outdiv > 63)
2148 freq_out *= fll->outdiv + 1;
2149 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out);
2152 fll->fll_fratio = 0;
2154 fll->fll_fratio = 1;
2157 fll->fll_fratio = 2;
2160 fll->fll_fratio = 3;
2163 fll->fll_fratio = 4;
2166 pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in);
2171 fll->n = Ndiv;
2188 fll->k = K / 10;
2189 fll->lambda = 0;
2191 pr_debug("N=%x K=%x\n", fll->n, fll->k);
2197 fll->k = (freq_out - (freq_in * fll->n)) / gcd_fll;
2198 fll->lambda = freq_in / gcd_fll;
2211 struct fll_div fll;
2240 src = wm8994->fll[id].src;
2256 if (wm8994->fll[id].src == src &&
2257 wm8994->fll[id].in == freq_in && wm8994->fll[id].out == freq_out)
2265 ret = wm8994_get_fll_config(control, &fll, freq_in, freq_out);
2267 ret = wm8994_get_fll_config(control, &fll, wm8994->fll[id].in,
2268 wm8994->fll[id].out);
2320 reg = (fll.outdiv << WM8994_FLL1_OUTDIV_SHIFT) |
2321 (fll.fll_fratio << WM8994_FLL1_FRATIO_SHIFT);
2327 WM8994_FLL1_K_MASK, fll.k);
2331 fll.n << WM8994_FLL1_N_SHIFT);
2333 if (fll.lambda) {
2336 fll.lambda);
2350 (fll.clk_ref_div << WM8994_FLL1_REFCLK_DIV_SHIFT) |
2396 if (fll.k)
2433 wm8994->fll[id].in = freq_in;
2434 wm8994->fll[id].out = freq_out;
2435 wm8994->fll[id].src = src;
3304 for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {
3305 memcpy(&wm8994->fll_suspend[i], &wm8994->fll[i],
3323 for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {