Lines Matching full:mfd
54 u32 mfd; member
65 u32 mfd; member
163 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
171 mfd = readl(&pll->hfs_mfd); in decode_pll()
175 mfd = readl(&pll->mfd); in decode_pll()
179 mfd &= MXC_DPLLC_MFD_MFD_MASK; in decode_pll()
201 do_div(temp, mfd + 1); in decode_pll()
549 * t_clk = 2*ref_freq*(mfi + mfn/(mfd+1))/(pd+1)
550 * This calculation is based on a fixed MFD value for simplicity.
554 u64 pd, mfi = 1, mfn, mfd, t1; in calc_pll_params() local
573 mfd = fixed_mfd[i].mfd; in calc_pll_params()
595 * mfn = (((n_target * pd) / 4 - n_ref * mfi) * mfd) / n_ref; in calc_pll_params()
600 t1 *= mfd; in calc_pll_params()
603 debug("ref=%d, target=%d, pd=%d," "mfi=%d,mfn=%d, mfd=%d\n", in calc_pll_params()
604 ref, n_target, (u32)pd, (u32)mfi, (u32)mfn, (u32)mfd); in calc_pll_params()
607 i = gcd(mfd, mfn); in calc_pll_params()
612 do_div(mfd, i); in calc_pll_params()
613 pll->mfd = (u32)mfd; in calc_pll_params()
636 writel((fd) - 1, &pll->mfd); \
658 pll_param->mfd); in config_pll_clk()
669 pll_param->mfd); in config_pll_clk()
680 pll_param->mfd); in config_pll_clk()
692 pll_param->mfd); in config_pll_clk()
849 * calc_pll_params() and obtains the values of PD, MFI,MFN, MFD based