Lines Matching full:mfd
53 u32 mfd; member
64 u32 mfd; member
162 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
170 mfd = readl(&pll->hfs_mfd); in decode_pll()
174 mfd = readl(&pll->mfd); in decode_pll()
178 mfd &= MXC_DPLLC_MFD_MFD_MASK; in decode_pll()
200 do_div(temp, mfd + 1); in decode_pll()
548 * t_clk = 2*ref_freq*(mfi + mfn/(mfd+1))/(pd+1)
549 * This calculation is based on a fixed MFD value for simplicity.
553 u64 pd, mfi = 1, mfn, mfd, t1; in calc_pll_params() local
572 mfd = fixed_mfd[i].mfd; in calc_pll_params()
594 * mfn = (((n_target * pd) / 4 - n_ref * mfi) * mfd) / n_ref; in calc_pll_params()
599 t1 *= mfd; in calc_pll_params()
602 debug("ref=%d, target=%d, pd=%d," "mfi=%d,mfn=%d, mfd=%d\n", in calc_pll_params()
603 ref, n_target, (u32)pd, (u32)mfi, (u32)mfn, (u32)mfd); in calc_pll_params()
606 i = gcd(mfd, mfn); in calc_pll_params()
611 do_div(mfd, i); in calc_pll_params()
612 pll->mfd = (u32)mfd; in calc_pll_params()
635 writel((fd) - 1, &pll->mfd); \
657 pll_param->mfd); in config_pll_clk()
668 pll_param->mfd); in config_pll_clk()
679 pll_param->mfd); in config_pll_clk()
691 pll_param->mfd); in config_pll_clk()
873 * calc_pll_params() and obtains the values of PD, MFI,MFN, MFD based