Home
last modified time | relevance | path

Searched refs:fref (Results 1 – 6 of 6) sorted by relevance

/u-boot/arch/arm/cpu/arm926ejs/mx25/
A Dgeneric.c60 ulong fref = MXC_HCLK; in imx_get_mpllclk() local
62 return imx_decode_pll(readl(&ccm->mpctl), fref); in imx_get_mpllclk()
68 ulong fref = MXC_HCLK; in imx_get_upllclk() local
70 return imx_decode_pll(readl(&ccm->upctl), fref); in imx_get_upllclk()
77 ulong fref = imx_get_mpllclk(); in imx_get_armclk() local
81 fref = lldiv((u64) fref * 3, 4); in imx_get_armclk()
86 return fref / div; in imx_get_armclk()
93 ulong fref = imx_get_armclk(); in imx_get_ahbclk() local
99 return fref / div; in imx_get_ahbclk()
117 return fref / div; in imx_get_perclk()
[all …]
/u-boot/arch/arm/mach-lpc32xx/
A Dclk.c25 unsigned long long fin, fref, fcco, fout; in get_hclk_pll_rate() local
35 fref = fin = get_sys_clk_rate(); in get_hclk_pll_rate()
53 do_div(fref, n_div); in get_hclk_pll_rate()
54 if (fref > 27000000ULL || fref < 1000000ULL) in get_hclk_pll_rate()
57 fcco = fref * m_div; in get_hclk_pll_rate()
/u-boot/arch/arm/mach-socfpga/
A Dclock_manager_s10.c207 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
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()
[all …]
/u-boot/arch/arm/cpu/arm926ejs/mx27/
A Dgeneric.c62 ulong fref; in imx_get_mpllclk() local
65 fref = clk_in_26m(); in imx_get_mpllclk()
67 fref = clk_in_32k(); in imx_get_mpllclk()
76 ulong fref = imx_get_mpllclk(); in imx_get_armclk() local
80 fref = lldiv((fref * 2), 3); in imx_get_armclk()
84 return lldiv(fref, div); in imx_get_armclk()
91 ulong fref = imx_get_mpllclk(); in imx_get_ahbclk() local
96 return lldiv(fref * 2, 3 * div); in imx_get_ahbclk()
103 ulong fref; in imx_get_spllclk() local
106 fref = clk_in_26m(); in imx_get_spllclk()
[all …]
/u-boot/arch/m68k/cpu/mcf532x/
A Dspeed.c147 int fref, temp, fout, mfd; in clock_pll() local
150 fref = FREF; in clock_pll()
158 return (fref * mfd) / busdiv; in clock_pll()
163 return (fref * mfd / (BUSDIV * 4)); in clock_pll()
180 temp = (100 * fsys) / fref; in clock_pll()
185 fout = ((fref * mfd) / BUSDIV); in clock_pll()
191 fout = ((fref * mfd) / (BUSDIV * 4)); in clock_pll()
/u-boot/drivers/clk/altera/
A Dclk-agilex.c349 u64 fref, arefdiv, mdiv, reg, vco; in clk_get_vco_clk_hz() local
353 fref = (reg & CLKMGR_PLLGLOB_VCO_PSRC_MASK) >> in clk_get_vco_clk_hz()
356 switch (fref) { in clk_get_vco_clk_hz()
358 fref = cm_get_osc_clk_hz(); in clk_get_vco_clk_hz()
361 fref = cm_get_intosc_clk_hz(); in clk_get_vco_clk_hz()
364 fref = cm_get_fpga_clk_hz(); in clk_get_vco_clk_hz()
373 vco = fref / arefdiv; in clk_get_vco_clk_hz()

Completed in 8 milliseconds