• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-davinci/

Lines Matching refs:pll

255 	struct pll_data *pll;
271 pll = clk->parent->pll_data;
275 rate = pll->input_rate;
280 v = __raw_readl(pll->base + clk->div_reg);
282 plldiv = (v & pll->div_ratio_mask) + 1;
302 struct pll_data *pll = clk->pll_data;
305 ctrl = __raw_readl(pll->base + PLLCTL);
306 rate = pll->input_rate = clk->parent->rate;
310 mult = __raw_readl(pll->base + PLLM);
318 if (pll->flags & PLL_HAS_PREDIV) {
319 prediv = __raw_readl(pll->base + PREDIV);
321 prediv = (prediv & pll->div_ratio_mask) + 1;
327 if (cpu_is_davinci_dm355() && pll->num == 1)
330 if (pll->flags & PLL_HAS_POSTDIV) {
331 postdiv = __raw_readl(pll->base + POSTDIV);
333 postdiv = (postdiv & pll->div_ratio_mask) + 1;
345 pll->num, clk->parent->rate / 1000000);
364 * @pll: pll whose rate needs to be changed.
369 int davinci_set_pllrate(struct pll_data *pll, unsigned int prediv,
376 if (pll->base == NULL)
398 ctrl = __raw_readl(pll->base + PLLCTL);
402 __raw_writel(ctrl, pll->base + PLLCTL);
408 __raw_writel(ctrl, pll->base + PLLCTL);
410 if (pll->flags & PLL_HAS_PREDIV)
411 __raw_writel(prediv, pll->base + PREDIV);
413 __raw_writel(mult, pll->base + PLLM);
415 if (pll->flags & PLL_HAS_POSTDIV)
416 __raw_writel(postdiv, pll->base + POSTDIV);
422 __raw_writel(ctrl, pll->base + PLLCTL);
428 __raw_writel(ctrl, pll->base + PLLCTL);
461 struct pll_data *pll = clk->pll_data;
463 if (!pll->div_ratio_mask)
464 pll->div_ratio_mask = PLLDIV_RATIO_MASK;
466 if (pll->phys_base && !pll->base) {
467 pll->base = ioremap(pll->phys_base, SZ_4K);
468 WARN_ON(!pll->base);
509 state = "pll";