Lines Matching defs:pll_div
703 static void pll_factors(struct _pll_div *pll_div, unsigned int source)
714 pll_div->divsel = 1;
718 pll_div->divctl = 1;
720 pll_div->divctl = 0;
723 pll_div->divsel = 0;
724 pll_div->divctl = 0;
731 pll_div->lf = 1;
734 pll_div->lf = 0;
742 pll_div->n = Ndiv;
757 pll_div->k = K;
769 struct _pll_div pll_div;
782 pll_factors(&pll_div, freq_in);
784 if (pll_div.k == 0) {
785 reg = (pll_div.n << 12) | (pll_div.lf << 11) |
786 (pll_div.divsel << 9) | (pll_div.divctl << 8);
790 reg2 = (pll_div.n << 12) | (pll_div.lf << 11) | (1 << 10) |
791 (pll_div.divsel << 9) | (pll_div.divctl << 8);
794 reg = reg2 | (0x5 << 4) | (pll_div.k >> 20);
798 reg = reg2 | (0x4 << 4) | ((pll_div.k >> 16) & 0xf);
802 reg = reg2 | (0x3 << 4) | ((pll_div.k >> 12) & 0xf);
806 reg = reg2 | (0x2 << 4) | ((pll_div.k >> 8) & 0xf);
810 reg = reg2 | (0x1 << 4) | ((pll_div.k >> 4) & 0xf);
813 reg = reg2 | (0x0 << 4) | (pll_div.k & 0xf); /* K [3:0] */