Searched refs:infreq (Results 1 – 6 of 6) sorted by relevance
/openbmc/u-boot/arch/arm/cpu/arm1136/mx31/ |
H A D | generic.c | 14 static u32 mx31_decode_pll(u32 reg, u32 infreq) in mx31_decode_pll() argument 26 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in mx31_decode_pll() 32 u32 infreq; in mx31_get_mpl_dpdgck_clk() local 35 infreq = MXC_CLK32 * 1024; in mx31_get_mpl_dpdgck_clk() 37 infreq = MXC_HCLK; in mx31_get_mpl_dpdgck_clk() 39 return mx31_decode_pll(readl(CCM_MPCTL), infreq); in mx31_get_mpl_dpdgck_clk()
|
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/ |
H A D | scg.c | 471 u32 reg, pre_div, infreq, mult; in decode_pll() local 494 infreq = (reg & SCG_PLL_CFG_CLKSRC_MASK) >> in decode_pll() 496 if (!infreq) in decode_pll() 497 infreq = scg_src_get_rate(SCG_SOSC_CLK); in decode_pll() 499 infreq = scg_src_get_rate(SCG_FIRC_CLK); in decode_pll() 504 infreq = infreq / pre_div; in decode_pll() 506 return infreq * mult + infreq * num / denom; in decode_pll() 523 infreq = (reg & SCG_PLL_CFG_CLKSRC_MASK) >> in decode_pll() 525 if (!infreq) in decode_pll() 526 infreq = scg_src_get_rate(SCG_SOSC_CLK); in decode_pll() [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/mx6/ |
H A D | clock.c | 211 static u32 decode_pll(enum pll_clocks pll, u32 infreq) in decode_pll() argument 220 return (infreq * div) >> 1; in decode_pll() 225 return infreq * (20 + (div << 1)); in decode_pll() 230 return infreq * (20 + (div << 1)); in decode_pll() 254 return infreq * (div + pll_num / pll_denom) / test_div; in decode_pll() 273 return infreq * (div + pll_num / pll_denom) / test_div; in decode_pll()
|
/openbmc/u-boot/arch/arm/cpu/arm1136/mx35/ |
H A D | generic.c | 114 static u32 decode_pll(u32 reg, u32 infreq) in decode_pll() argument 126 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in decode_pll()
|
/openbmc/u-boot/arch/arm/mach-imx/mx7/ |
H A D | clock.c | 104 static u32 decode_pll(enum pll_clocks pll, u32 infreq) in decode_pll() argument 126 return (infreq * div_sel) / 2; in decode_pll() 169 return infreq * (div_sel + num / denom); in decode_pll()
|
/openbmc/u-boot/arch/arm/mach-imx/mx5/ |
H A D | clock.c | 160 static uint32_t decode_pll(struct mxc_pll_reg *pll, uint32_t infreq) in decode_pll() argument 194 refclk = infreq * 2; in decode_pll()
|