/external/u-boot/arch/powerpc/cpu/mpc85xx/ |
fsl_corenet2_serdes.c | 205 u32 pll_num, pll_status, bc, dc, fc, pll_cr_upd, pll_cr0, pll_cr1; local 230 for (pll_num = 0; pll_num < SRDS_MAX_BANK; pll_num++) { 231 pll_status = in_be32(&srds_regs->bank[pll_num].pllcr0); 232 debug("A007186: pll_num=%x pllcr0=%x\n", 233 pll_num, pll_status); 266 pll_cr1 = in_be32(&srds_regs->bank[pll_num].pllcr1); 269 out_be32(&srds_regs->bank[pll_num].pllcr1, 271 debug("A007186: pll_num=%x Updated PLLCR1=%x\n" [all...] |
/external/u-boot/board/freescale/b4860qds/ |
b4860qds.c | 596 static int calibrate_pll(serdes_corenet_t *srds_regs, int pll_num) 603 debug("CALIBRATE PLL:%d\n", pll_num); 604 clrbits_be32(&srds_regs->bank[pll_num].rstctl, 607 clrbits_be32(&srds_regs->bank[pll_num].rstctl, 610 setbits_be32(&srds_regs->bank[pll_num].rstctl, 612 setbits_be32(&srds_regs->bank[pll_num].rstctl, 619 rst_err = in_be32(&srds_regs->bank[pll_num].rstctl) & 622 debug("RST_ERR value for PLL %d is: 0x%x:\n", pll_num, rst_err); 629 static int check_pll_locks(serdes_corenet_t *srds_regs, int pll_num) 634 if (calibrate_pll(srds_regs, pll_num)) { [all...] |
/external/u-boot/arch/arm/mach-imx/mx6/ |
clock.c | 213 u32 div, test_div, pll_num, pll_denom; local 243 pll_num = __raw_readl(&imx_ccm->analog_pll_audio_num); 254 return infreq * (div + pll_num / pll_denom) / test_div; 262 pll_num = __raw_readl(&imx_ccm->analog_pll_video_num); 273 return infreq * (div + pll_num / pll_denom) / test_div; 551 static int enable_pll_video(u32 pll_div, u32 pll_num, u32 pll_denom, 558 pll_div, pll_num, pll_denom); 589 writel(BF_ANADIG_PLL_VIDEO_NUM_A(pll_num), 626 u32 pll_div, pll_num, pll_denom, post_div = 1; local 699 pll_num = (best - hck * pll_div) * pll_denom / hck [all...] |
/external/u-boot/arch/arm/mach-imx/mx7/ |
clock.c | 775 static int enable_pll_video(u32 pll_div, u32 pll_num, u32 pll_denom, 782 pll_div, pll_num, pll_denom); 828 writel(CCM_ANALOG_PLL_VIDEO_NUM_A(pll_num), 898 u32 pll_div, pll_num, pll_denom, post_div = 0; local 944 pll_num = (best - hck * pll_div) * pll_denom / hck; 946 if (enable_pll_video(pll_div, pll_num, pll_denom, post_div))
|