Lines Matching refs:fref
175 unsigned long fref, refdiv, mdiv, reg, vco; in cm_get_main_vco_clk_hz() local
179 fref = (reg >> CLKMGR_PLLGLOB_VCO_PSRC_OFFSET) & in cm_get_main_vco_clk_hz()
181 switch (fref) { in cm_get_main_vco_clk_hz()
183 fref = cm_get_osc_clk_hz(); in cm_get_main_vco_clk_hz()
186 fref = cm_get_intosc_clk_hz(); in cm_get_main_vco_clk_hz()
189 fref = cm_get_fpga_clk_hz(); in cm_get_main_vco_clk_hz()
199 vco = fref / refdiv; in cm_get_main_vco_clk_hz()
206 unsigned long fref, refdiv, mdiv, reg, vco; in cm_get_per_vco_clk_hz() local
210 fref = (reg >> CLKMGR_PLLGLOB_VCO_PSRC_OFFSET) & in cm_get_per_vco_clk_hz()
212 switch (fref) { in cm_get_per_vco_clk_hz()
214 fref = cm_get_osc_clk_hz(); in cm_get_per_vco_clk_hz()
217 fref = cm_get_intosc_clk_hz(); in cm_get_per_vco_clk_hz()
220 fref = cm_get_fpga_clk_hz(); in cm_get_per_vco_clk_hz()
230 vco = fref / refdiv; in cm_get_per_vco_clk_hz()