View | Details | Raw Unified | Return to bug 217782
Collapse All | Expand All

(-)b/sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c (-1 / +1 lines)
Lines 2023-2029 bhnd_pmu1_pllinit0(struct bhnd_pmu_softc *sc, uint32_t xtal) Link Here
2023
2023
2024
	/* Write XtalFreq. Set the divisor also. */
2024
	/* Write XtalFreq. Set the divisor also. */
2025
	pmuctrl = BHND_PMU_READ_4(sc, BHND_PMU_CTRL);
2025
	pmuctrl = BHND_PMU_READ_4(sc, BHND_PMU_CTRL);
2026
	pmuctrl = ~(BHND_PMU_CTRL_ILP_DIV_MASK | BHND_PMU_CTRL_XTALFREQ_MASK);
2026
	pmuctrl |= ~(BHND_PMU_CTRL_ILP_DIV_MASK | BHND_PMU_CTRL_XTALFREQ_MASK);
2027
	pmuctrl |= BHND_PMU_SET_BITS(((xt->fref + 127) / 128) - 1,
2027
	pmuctrl |= BHND_PMU_SET_BITS(((xt->fref + 127) / 128) - 1,
2028
	    BHND_PMU_CTRL_ILP_DIV);
2028
	    BHND_PMU_CTRL_ILP_DIV);
2029
	pmuctrl |= BHND_PMU_SET_BITS(xt->xf, BHND_PMU_CTRL_XTALFREQ);
2029
	pmuctrl |= BHND_PMU_SET_BITS(xt->xf, BHND_PMU_CTRL_XTALFREQ);

Return to bug 217782