Lines Matching refs:p1div
191 void si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
192 void si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac);
2540 uint8 p1div; member
3370 uint8 p1div; in si_pmu_pll28nm_calc_ndiv() local
3373 p1div = 1 + (uint8) ((xtal * 1000) / 54000000UL); in si_pmu_pll28nm_calc_ndiv()
3374 *ndiv_int = (fvco * p1div) / xtal; in si_pmu_pll28nm_calc_ndiv()
3377 math_uint64_multiple_add(&temp_high, &temp_low, fvco * p1div - xtal * (*ndiv_int), 1 << 20, in si_pmu_pll28nm_calc_ndiv()
3380 return p1div; in si_pmu_pll28nm_calc_ndiv()
3384 si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac) in si_pmu_armpll_freq_upd() argument
3399 ((p1div >> PMU4369_P1DIV_LO_SHIFT) << PMU4369_PLL1_PC5_P1DIV_SHIFT)); in si_pmu_armpll_freq_upd()
3401 (p1div >> PMU4369_P1DIV_HI_SHIFT)); in si_pmu_armpll_freq_upd()
3411 ((p1div >> PMU4369_P1DIV_LO_SHIFT) << PMU4369_PLL1_PC5_P1DIV_SHIFT)); in si_pmu_armpll_freq_upd()
3413 (p1div >> PMU4369_P1DIV_HI_SHIFT)); in si_pmu_armpll_freq_upd()
3427 si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac) in si_pmu_bbpll_freq_upd() argument
3433 si_pmu_pllcontrol(sih, PMU_PLL_CTRL_REG2, PMU4369_PLL0_PC2_PDIV_MASK, p1div); in si_pmu_bbpll_freq_upd()
3737 tmp = ((xt->p1div << PMU4369_PLL0_PC2_PDIV_SHIFT) & in BCMATTACHFN()
3755 tmp = ((xt->p1div << PMU1_PLL0_PC0_P1DIV_SHIFT) & in BCMATTACHFN()
4516 uint32 ndiv_int, ndiv_frac, p2div, p1div, fvco; in BCMPOSTTRAPFN() local
4590 p1div = (tmp & PMU1_PLL0_PC0_P1DIV_MASK) >> PMU1_PLL0_PC0_P1DIV_SHIFT; in BCMPOSTTRAPFN()
4600 p1div = (tmp & PMU4369_PLL0_PC2_PDIV_MASK) >> PMU4369_PLL0_PC2_PDIV_SHIFT; in BCMPOSTTRAPFN()
4605 p1div = (tmp & PMU4378_PLL0_PC2_P1DIV_MASK) >> PMU4378_PLL0_PC2_P1DIV_SHIFT; in BCMPOSTTRAPFN()
4612 ASSERT(p1div != 0); in BCMPOSTTRAPFN()
4630 fvco *= p1div; in BCMPOSTTRAPFN()
4644 fvco /= p1div; in BCMPOSTTRAPFN()
4650 ndiv_int, ndiv_frac, p2div, p1div, fvco)); in BCMPOSTTRAPFN()
4941 uint32 vcofreq_withfrac, p1div, ndiv_int, fraca, ndiv_mode, reg; in BCMATTACHFN() local
4971 p1div = 0x1; in BCMATTACHFN()
4979 (p1div << p1div_shift); in BCMATTACHFN()
5007 p1div; /* predivider: divides x-tal freq */ in si_pmu_get_bb_vcofreq() local
5021 p1div = 1; /* do not divide x-tal frequency */ in si_pmu_get_bb_vcofreq()
5033 p1div = (reg >> 16) & 0xf; in si_pmu_get_bb_vcofreq()
5043 xtal1 = 10000 * xtalfreq / p1div; /* in [100Hz] units */ in si_pmu_get_bb_vcofreq()
6169 uint8 p1div = (p1div_hi << PMU4368_P1DIV_HI_SHIFT) | (p1div_lo << PMU4368_P1DIV_LO_SHIFT); in si_pmu_pll28nm_fvco() local
6178 } else if (p1div == 0) { in si_pmu_pll28nm_fvco()
6195 return (r + ndiv_int * xf) / p1div; in si_pmu_pll28nm_fvco()