Lines Matching refs:pll_div
753 struct _pll_div *pll_div, unsigned int source)
764 pll_div->divsel = 1;
768 pll_div->divctl = 1;
770 pll_div->divctl = 0;
773 pll_div->divsel = 0;
774 pll_div->divctl = 0;
781 pll_div->lf = 1;
784 pll_div->lf = 0;
792 pll_div->n = Ndiv;
807 pll_div->k = K;
819 struct _pll_div pll_div;
830 pll_factors(component, &pll_div, freq_in);
832 if (pll_div.k == 0) {
833 reg = (pll_div.n << 12) | (pll_div.lf << 11) |
834 (pll_div.divsel << 9) | (pll_div.divctl << 8);
838 reg2 = (pll_div.n << 12) | (pll_div.lf << 11) | (1 << 10) |
839 (pll_div.divsel << 9) | (pll_div.divctl << 8);
842 reg = reg2 | (0x5 << 4) | (pll_div.k >> 20);
846 reg = reg2 | (0x4 << 4) | ((pll_div.k >> 16) & 0xf);
850 reg = reg2 | (0x3 << 4) | ((pll_div.k >> 12) & 0xf);
854 reg = reg2 | (0x2 << 4) | ((pll_div.k >> 8) & 0xf);
858 reg = reg2 | (0x1 << 4) | ((pll_div.k >> 4) & 0xf);
861 reg = reg2 | (0x0 << 4) | (pll_div.k & 0xf); /* K [3:0] */