Lines Matching refs:pll
161 static uint32_t decode_pll(struct mxc_pll_reg *pll, uint32_t infreq) in decode_pll() argument
167 ctrl = readl(&pll->ctrl); in decode_pll()
170 mfn = readl(&pll->hfs_mfn); in decode_pll()
171 mfd = readl(&pll->hfs_mfd); in decode_pll()
172 op = readl(&pll->hfs_op); in decode_pll()
174 mfn = readl(&pll->mfn); in decode_pll()
175 mfd = readl(&pll->mfd); in decode_pll()
176 op = readl(&pll->op); in decode_pll()
552 static int calc_pll_params(u32 ref, u32 target, struct pll_param *pll) in calc_pll_params() argument
608 pll->pd = (u32)pd; in calc_pll_params()
609 pll->mfi = (u32)mfi; in calc_pll_params()
611 pll->mfn = (u32)mfn; in calc_pll_params()
613 pll->mfd = (u32)mfd; in calc_pll_params()
629 #define CHANGE_PLL_SETTINGS(pll, pd, fi, fn, fd) \ argument
631 writel(0x1232, &pll->ctrl); \
632 writel(0x2, &pll->config); \
634 &pll->op); \
635 writel(fn, &(pll->mfn)); \
636 writel((fd) - 1, &pll->mfd); \
638 &pll->hfs_op); \
639 writel(fn, &pll->hfs_mfn); \
640 writel((fd) - 1, &pll->hfs_mfd); \
641 writel(0x1232, &pll->ctrl); \
642 while (!readl(&pll->ctrl) & 0x1) \
649 struct mxc_pll_reg *pll = mxc_plls[index]; in config_pll_clk() local
656 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
667 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
678 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
690 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()