Home
last modified time | relevance | path

Searched refs:refdiv (Results 1 – 16 of 16) sorted by relevance

/external/u-boot/drivers/clk/rockchip/
Dclk_rk3128.c30 .refdiv = _refdiv,\
45 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
49 pll, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
64 div->refdiv << PLL_REFDIV_SHIFT)); in rkclk_set_pll()
78 u32 ref_khz = OSC_HZ / 1000, refdiv, fbdiv = 0; in pll_para_config() local
111 for (refdiv = 1; refdiv < max_refdiv && best_diff_khz; refdiv++) { in pll_para_config()
112 fref_khz = ref_khz / refdiv; in pll_para_config()
127 div->refdiv = refdiv; in pll_para_config()
241 u32 refdiv, fbdiv, postdiv1, postdiv2; in rkclk_pll_get_rate() local
270 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate()
[all …]
Dclk_rk322x.c29 .refdiv = _refdiv,\
48 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
52 pll, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
67 div->refdiv << PLL_REFDIV_SHIFT)); in rkclk_set_pll()
173 uint32_t refdiv, fbdiv, postdiv1, postdiv2; in rkclk_pll_get_rate() local
203 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate()
204 return (24 * fbdiv / (refdiv * postdiv1 * postdiv2)) * 1000000; in rkclk_pll_get_rate()
325 {.refdiv = 1, .fbdiv = 50, .postdiv1 = 3, .postdiv2 = 1}; in rk322x_ddr_set_clk()
329 {.refdiv = 1, .fbdiv = 75, .postdiv1 = 3, .postdiv2 = 1}; in rk322x_ddr_set_clk()
333 {.refdiv = 1, .fbdiv = 100, .postdiv1 = 3, .postdiv2 = 1}; in rk322x_ddr_set_clk()
Dclk_rk3399.c33 u32 refdiv; member
45 .refdiv = _refdiv,\
294 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll()
299 pll_con, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
323 (div->refdiv << PLL_REFDIV_SHIFT)); in rkclk_set_pll()
336 u32 ref_khz = OSC_HZ / KHz, refdiv, fbdiv = 0; in pll_para_config() local
369 for (refdiv = 1; refdiv < max_refdiv && best_diff_khz; refdiv++) { in pll_para_config()
370 fref_khz = ref_khz / refdiv; in pll_para_config()
385 div->refdiv = refdiv; in pll_para_config()
779 {.refdiv = 1, .fbdiv = 50, .postdiv1 = 6, .postdiv2 = 1}; in rk3399_ddr_set_clk()
[all …]
Dclk_rk3036.c32 .refdiv = _refdiv,\
51 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
56 pll, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
69 div->refdiv << PLL_REFDIV_SHIFT)); in rkclk_set_pll()
172 uint32_t refdiv, fbdiv, postdiv1, postdiv2; in rkclk_pll_get_rate() local
202 refdiv = (con & PLL_REFDIV_MASK) >> PLL_REFDIV_SHIFT; in rkclk_pll_get_rate()
203 return (24 * fbdiv / (refdiv * postdiv1 * postdiv2)) * 1000000; in rkclk_pll_get_rate()
Dclk_rv1108.c30 .refdiv = _refdiv,\
63 uint32_t refdiv, fbdiv, postdiv1, postdiv2; in rkclk_pll_get_rate() local
77 refdiv = (con1 & REFDIV_MASK) >> REFDIV_SHIFT; in rkclk_pll_get_rate()
78 freq = (24 * fbdiv / (refdiv * postdiv1 * postdiv2)) * 1000000; in rkclk_pll_get_rate()
Dclk_rk3328.c21 u32 refdiv; member
33 .refdiv = _refdiv,\
241 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll()
246 pll_con, div->fbdiv, div->refdiv, div->postdiv1, in rkclk_set_pll()
269 (div->refdiv << PLL_REFDIV_SHIFT)); in rkclk_set_pll()
/external/u-boot/arch/mips/mach-ath79/ar934x/
Dclk.c31 u8 refdiv; member
144 pll_refdiv = pll_cfg->refdiv; in ar934x_pll_init()
153 pll_refdiv = pll_cfg->refdiv; in ar934x_pll_init()
232 const u32 refdiv = (regval >> AR934X_PLL_CPU_CONFIG_REFDIV_SHIFT) & in ar934x_cpupll_to_hz() local
240 return (xtal * (nint + (nfrac >> 9))) / (refdiv * (1 << outdiv)); in ar934x_cpupll_to_hz()
247 const u32 refdiv = (regval >> AR934X_PLL_DDR_CONFIG_REFDIV_SHIFT) & in ar934x_ddrpll_to_hz() local
255 return (xtal * (nint + (nfrac >> 9))) / (refdiv * (1 << outdiv)); in ar934x_ddrpll_to_hz()
/external/u-boot/arch/arm/mach-socfpga/
Dclock_manager_s10.c175 unsigned long fref, refdiv, mdiv, reg, vco; in cm_get_main_vco_clk_hz() local
193 refdiv = (reg >> CLKMGR_PLLGLOB_REFCLKDIV_OFFSET) & 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
224 refdiv = (reg >> CLKMGR_PLLGLOB_REFCLKDIV_OFFSET) & in cm_get_per_vco_clk_hz()
230 vco = fref / refdiv; in cm_get_per_vco_clk_hz()
/external/u-boot/arch/m68k/cpu/mcf532x/
Dspeed.c68 u32 refdiv = (1 << ((in_be32(&pll->pcr) & PLL_PCR_REFDIV(7)) >> 8)); in get_sys_clock() local
71 return (((FREF * pfdr) / refdiv) / busdiv); in get_sys_clock()
/external/u-boot/arch/mips/mach-ath79/ar933x/
Dlowlevel_init.S19 #define MK_PLL_CONF(divint, refdiv, range, outdiv) \ argument
21 ((0x1F & refdiv) << 16) | \
/external/u-boot/arch/mips/mach-ath79/qca953x/
Dlowlevel_init.S14 #define MK_PLL_CONF(divint, refdiv, range, outdiv) \ argument
16 ((0x1F & refdiv) << 16) | \
/external/u-boot/arch/arm/include/asm/arch-rockchip/
Dcru_rv1108.h50 u32 refdiv; member
Dcru_rk3036.h61 u32 refdiv; member
Dcru_rk3128.h64 u32 refdiv; member
Dcru_rk322x.h62 u32 refdiv; member
/external/u-boot/arch/arm/mach-rockchip/rk3036/
Dsdram_rk3036.c344 dpll_init_cfg.refdiv << PLL_REFDIV_SHIFT)); in rkdclk_init()