Lines Matching defs:fll
80 struct fll_config fll[2], fll_suspend[2];
1777 rate = wm8994->fll[0].out;
1782 rate = wm8994->fll[1].out;
2819 static int wm8994_get_fll_config(struct fll_div *fll,
2828 fll->clk_ref_div = 0;
2830 fll->clk_ref_div++;
2833 if (fll->clk_ref_div > 3)
2836 pr_debug("CLK_REF_DIV=%d, Fref=%dHz\n", fll->clk_ref_div, freq_in);
2839 fll->outdiv = 3;
2840 while (freq_out * (fll->outdiv + 1) < 90000000) {
2841 fll->outdiv++;
2842 if (fll->outdiv > 63)
2845 freq_out *= fll->outdiv + 1;
2846 pr_debug("OUTDIV=%d, Fvco=%dHz\n", fll->outdiv, freq_out);
2849 fll->fll_fratio = 0;
2851 fll->fll_fratio = 1;
2854 fll->fll_fratio = 2;
2857 fll->fll_fratio = 3;
2860 fll->fll_fratio = 4;
2863 pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in);
2868 fll->n = Ndiv;
2883 fll->k = K / 10;
2885 pr_debug("N=%x K=%x\n", fll->n, fll->k);
2896 struct fll_div fll;
2923 src = wm8994->fll[id].src;
2935 if (wm8994->fll[id].src == src &&
2936 wm8994->fll[id].in == freq_in && wm8994->fll[id].out == freq_out)
2944 ret = wm8994_get_fll_config(&fll, freq_in, freq_out);
2946 ret = wm8994_get_fll_config(&fll, wm8994->fll[id].in,
2947 wm8994->fll[id].out);
2961 reg = (fll.outdiv << WM8994_FLL1_OUTDIV_SHIFT) |
2962 (fll.fll_fratio << WM8994_FLL1_FRATIO_SHIFT);
2967 snd_soc_write(codec, WM8994_FLL1_CONTROL_3 + reg_offset, fll.k);
2971 fll.n << WM8994_FLL1_N_SHIFT);
2976 (fll.clk_ref_div << WM8994_FLL1_REFCLK_DIV_SHIFT) |
2981 if (fll.k)
2990 wm8994->fll[id].in = freq_in;
2991 wm8994->fll[id].out = freq_out;
2992 wm8994->fll[id].src = src;
3594 for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {
3595 memcpy(&wm8994->fll_suspend[i], &wm8994->fll[i],
3636 for (i = 0; i < ARRAY_SIZE(wm8994->fll); i++) {