Lines Matching refs:pll
160 static uint32_t decode_pll(struct mxc_pll_reg *pll, uint32_t infreq) in decode_pll() argument
166 ctrl = readl(&pll->ctrl); in decode_pll()
169 mfn = readl(&pll->hfs_mfn); in decode_pll()
170 mfd = readl(&pll->hfs_mfd); in decode_pll()
171 op = readl(&pll->hfs_op); in decode_pll()
173 mfn = readl(&pll->mfn); in decode_pll()
174 mfd = readl(&pll->mfd); in decode_pll()
175 op = readl(&pll->op); in decode_pll()
551 static int calc_pll_params(u32 ref, u32 target, struct pll_param *pll) in calc_pll_params() argument
607 pll->pd = (u32)pd; in calc_pll_params()
608 pll->mfi = (u32)mfi; in calc_pll_params()
610 pll->mfn = (u32)mfn; in calc_pll_params()
612 pll->mfd = (u32)mfd; in calc_pll_params()
628 #define CHANGE_PLL_SETTINGS(pll, pd, fi, fn, fd) \ argument
630 writel(0x1232, &pll->ctrl); \
631 writel(0x2, &pll->config); \
633 &pll->op); \
634 writel(fn, &(pll->mfn)); \
635 writel((fd) - 1, &pll->mfd); \
637 &pll->hfs_op); \
638 writel(fn, &pll->hfs_mfn); \
639 writel((fd) - 1, &pll->hfs_mfd); \
640 writel(0x1232, &pll->ctrl); \
641 while (!readl(&pll->ctrl) & 0x1) \
648 struct mxc_pll_reg *pll = mxc_plls[index]; in config_pll_clk() local
655 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
666 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
677 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()
689 CHANGE_PLL_SETTINGS(pll, pll_param->pd, in config_pll_clk()