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