• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/shared/

Lines Matching defs:xtalfreq

356 static const char BCMATTACHDATA(rstr_xtalfreq)[] = "xtalfreq";
3204 * Uses xtalfreq variable, or passed-in default.
4308 uint32 xtalfreq = 0;
4310 /* If there is OTP or NVRAM entry for xtalfreq, program the
4313 xtalfreq = getintvar(NULL, rstr_xtalfreq);
4315 if (xtalfreq) {
4317 xtal = xtalfreq;
5684 BCMATTACHFN(si_set_bb_vcofreq_frac)(si_t *sih, osl_t *osh, int vcofreq, int frac, int xtalfreq)
5729 ndiv_int = vcofreq / xtalfreq;
5730 ndiv_mode = (vcofreq_withfrac % (xtalfreq * 10000)) ? 3 : 0;
5732 vcofreq, xtalfreq, frac, ndiv_mode, ndiv_int));
5741 /* frac = (vcofreq_withfrac % (xtalfreq * 10000)) * 2^24) / (xtalfreq * 10000) */
5744 &r1, &r0, vcofreq_withfrac % (xtalfreq * 10000), 1 << 24, 0);
5745 bcm_uint64_divide(&fraca, r1, r0, xtalfreq * 10000);
5755 si_pmu_get_bb_vcofreq(si_t *sih, osl_t *osh, int xtalfreq)
5792 xtal1 = 10000 * xtalfreq / p1div; /* in [100Hz] units */
5803 PMU_ERROR(("%s: xtalfreq is too big, %d\n", __FUNCTION__, xtalfreq));
5813 si_pmu_enb_slow_clk(si_t *sih, osl_t *osh, uint32 xtalfreq)
5823 if (xtalfreq == 37400) {
5825 } else if (xtalfreq == 40000) {
5828 PMU_ERROR(("%s: xtalfreq is not supported, %d\n", __FUNCTION__, xtalfreq));
5839 * xtalfreq : x-tal frequency in [KHz]
5842 BCMATTACHFN(si_pmu_pll_init)(si_t *sih, osl_t *osh, uint xtalfreq)
5856 si_pmu0_pllinit0(sih, osh, cc, xtalfreq);
5859 if (xtalfreq == 0)
5860 xtalfreq = 25000;
5861 si_pmu0_pllinit0(sih, osh, cc, xtalfreq);
5864 si_pmu1_pllinit0(sih, osh, cc, xtalfreq);
5867 if (xtalfreq == 0)
5868 xtalfreq = 38400;
5869 si_pmu1_pllinit0(sih, osh, cc, xtalfreq);
5942 si_pmu1_pllinit0(sih, osh, cc, xtalfreq);
5950 si_pmu1_pllinit1(sih, osh, cc, xtalfreq);
5961 si_pmu1_pllinit1(sih, osh, cc, xtalfreq);
5962 if (xtalfreq == 40000)
5969 if (xtalfreq == 0)
5970 xtalfreq = 20000;
5971 si_pmu2_pllinit0(sih, osh, cc, xtalfreq);
5974 si_pmu2_pllinit0(sih, osh, cc, xtalfreq);
5986 si_pmu_enb_slow_clk(sih, osh, xtalfreq);
8273 uint32 xtalfreq, mode;
8285 xtalfreq = getintvar(NULL, rstr_xtalfreq);
8289 xtalfreq = 37400;
8292 xtalfreq = 20000;
8296 xtalfreq = 40000;
8307 if (xtalfreq == 0) {
8312 xtalfreq = 40000;
8314 xtalfreq = 37400;
8325 xtalfreq = 40000;
8334 /* If xtalfreq var not available, try to measure it */
8335 if (xtalfreq == 0)
8336 xtalfreq = si_pmu_measure_alpclk(sih, osh);
8337 si_pmu_enb_slow_clk(sih, osh, xtalfreq);