Lines Matching defs:crystalfreq
75 static const struct pmu0_plltab_entry * pmu0_plltab_find_entry(u32 crystalfreq)
82 if (e->freq == crystalfreq)
89 /* Tune the PLL to the crystal speed. crystalfreq is in kHz. */
91 u32 crystalfreq)
98 if (crystalfreq)
99 e = pmu0_plltab_find_entry(crystalfreq);
103 crystalfreq = e->freq;
104 cc->pmu.crystalfreq = e->freq;
114 crystalfreq / 1000, crystalfreq % 1000);
145 if (crystalfreq >= SSB_PMU0_PLLCTL0_PDIV_FREQ)
170 pmuctl |= (((crystalfreq + 127) / 128 - 1) << SSB_CHIPCO_PMU_CTL_ILP_DIV_SHIFT)
206 static const struct pmu1_plltab_entry * pmu1_plltab_find_entry(u32 crystalfreq)
213 if (e->freq == crystalfreq)
220 /* Tune the PLL to the crystal speed. crystalfreq is in kHz. */
222 u32 crystalfreq)
233 cc->pmu.crystalfreq = 20000;
237 if (crystalfreq)
238 e = pmu1_plltab_find_entry(crystalfreq);
242 crystalfreq = e->freq;
243 cc->pmu.crystalfreq = e->freq;
253 crystalfreq / 1000, crystalfreq % 1000);
308 /* Tune the crystalfreq and the divisor. */
320 u32 crystalfreq = 0; /* in kHz. 0 = keep default freq. */
326 crystalfreq = simple_strtoul(buf, NULL, 0);
333 ssb_pmu1_pllinit_r0(cc, crystalfreq);
336 ssb_pmu0_pllinit_r0(cc, crystalfreq);
339 if (crystalfreq == 0)
340 crystalfreq = 25000;
341 ssb_pmu0_pllinit_r0(cc, crystalfreq);
621 u32 crystalfreq;
624 crystalfreq = (chipco_read32(cc, SSB_CHIPCO_PMU_CTL) &
626 e = pmu0_plltab_find_entry(crystalfreq);