Lines Matching refs:fref
201 unsigned long fref, refdiv, mdiv, reg, vco; in cm_get_main_vco_clk_hz() local
205 fref = (reg >> CLKMGR_PLLGLOB_VCO_PSRC_OFFSET) & in cm_get_main_vco_clk_hz()
207 switch (fref) { in cm_get_main_vco_clk_hz()
209 fref = cm_get_osc_clk_hz(); in cm_get_main_vco_clk_hz()
212 fref = cm_get_intosc_clk_hz(); in cm_get_main_vco_clk_hz()
215 fref = cm_get_fpga_clk_hz(); in cm_get_main_vco_clk_hz()
225 vco = fref / refdiv; in cm_get_main_vco_clk_hz()
232 unsigned long fref, refdiv, mdiv, reg, vco; in cm_get_per_vco_clk_hz() local
236 fref = (reg >> CLKMGR_PLLGLOB_VCO_PSRC_OFFSET) & in cm_get_per_vco_clk_hz()
238 switch (fref) { in cm_get_per_vco_clk_hz()
240 fref = cm_get_osc_clk_hz(); in cm_get_per_vco_clk_hz()
243 fref = cm_get_intosc_clk_hz(); in cm_get_per_vco_clk_hz()
246 fref = cm_get_fpga_clk_hz(); in cm_get_per_vco_clk_hz()
256 vco = fref / refdiv; in cm_get_per_vco_clk_hz()