Lines Matching refs:pll_clk
73 struct cpg_pll_clk *pll_clk = to_pll_clk(hw);
76 mult = FIELD_GET(CPG_PLLxCR0_NI, readl(pll_clk->pllcr0_reg)) + 1;
103 struct cpg_pll_clk *pll_clk = to_pll_clk(hw);
110 if (readl(pll_clk->pllcr0_reg) & CPG_PLLxCR0_KICK)
113 cpg_reg_modify(pll_clk->pllcr0_reg, CPG_PLLxCR0_NI,
120 cpg_reg_modify(pll_clk->pllcr0_reg, 0, CPG_PLLxCR0_KICK);
131 return readl_poll_timeout(pll_clk->pllecr_reg, val,
132 val & pll_clk->pllecr_pllst_mask, 0, 1000);
149 struct cpg_pll_clk *pll_clk;
153 pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL);
154 if (!pll_clk)
162 pll_clk->hw.init = &init;
163 pll_clk->pllcr0_reg = base + cr0_offset;
164 pll_clk->pllecr_reg = base + CPG_PLLECR;
165 pll_clk->pllecr_pllst_mask = CPG_PLLECR_PLLST(index);
169 cpg_reg_modify(pll_clk->pllcr0_reg, CPG_PLLxCR0_SSMODE, 0);
171 clk = clk_register(NULL, &pll_clk->hw);
173 kfree(pll_clk);