Lines Matching +full:crystal +full:- +full:freq
1 // SPDX-License-Identifier: GPL-2.0
14 #include <asm/intel-family.h>
24 * use a 25 MHz crystal and Cherry Trail uses a 19.2 MHz crystal, the crystal
63 * so the freq number is not exactly the same as reported
138 * 24 MHz crystal? : 24 * 13 / 4 = 78 MHz
161 * MSR-based CPU/TSC frequency discovery for certain CPUs.
168 u32 lo, hi, ratio, freq, tscref; in cpu_khz_from_msr() local
179 freq_desc = (struct freq_desc *)id->driver_data; in cpu_khz_from_msr()
180 if (freq_desc->use_msr_plat) { in cpu_khz_from_msr()
188 /* Get FSB FREQ ID */ in cpu_khz_from_msr()
190 index = lo & freq_desc->mask; in cpu_khz_from_msr()
191 md = &freq_desc->muldiv[index]; in cpu_khz_from_msr()
195 * part of muldiv, in that case the else will set freq and res to 0. in cpu_khz_from_msr()
197 if (md->divider) { in cpu_khz_from_msr()
198 tscref = TSC_REFERENCE_KHZ * md->multiplier; in cpu_khz_from_msr()
199 freq = DIV_ROUND_CLOSEST(tscref, md->divider); in cpu_khz_from_msr()
202 * accuracy than just calculating freq * ratio. in cpu_khz_from_msr()
204 res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider); in cpu_khz_from_msr()
206 freq = freq_desc->freqs[index]; in cpu_khz_from_msr()
207 res = freq * ratio; in cpu_khz_from_msr()
210 if (freq == 0) in cpu_khz_from_msr()
214 lapic_timer_period = (freq * 1000) / HZ; in cpu_khz_from_msr()