Lines Matching refs:pmc

61 	struct at91_pmc *pmc;  member
85 struct at91_pmc *pmc = pll->pmc; in clk_pll_prepare() local
97 pllr = pmc_read(pmc, offset); in clk_pll_prepare()
101 if ((pmc_read(pmc, AT91_PMC_SR) & mask) && in clk_pll_prepare()
108 icpr = pmc_read(pmc, AT91_PMC_PLLICPR) & ~PLL_ICPR_MASK(id); in clk_pll_prepare()
111 pmc_write(pmc, AT91_PMC_PLLICPR, icpr); in clk_pll_prepare()
119 pmc_write(pmc, offset, pllr); in clk_pll_prepare()
121 while (!(pmc_read(pmc, AT91_PMC_SR) & mask)) { in clk_pll_prepare()
124 pmc_read(pmc, AT91_PMC_SR) & mask); in clk_pll_prepare()
133 struct at91_pmc *pmc = pll->pmc; in clk_pll_is_prepared() local
135 return !!(pmc_read(pmc, AT91_PMC_SR) & in clk_pll_is_prepared()
142 struct at91_pmc *pmc = pll->pmc; in clk_pll_unprepare() local
145 u32 tmp = pmc_read(pmc, offset) & ~(layout->pllr_mask); in clk_pll_unprepare()
147 pmc_write(pmc, offset, tmp); in clk_pll_unprepare()
311 at91_clk_register_pll(struct at91_pmc *pmc, unsigned int irq, const char *name, in at91_clk_register_pll() argument
340 pll->pmc = pmc; in at91_clk_register_pll()
342 tmp = pmc_read(pmc, offset) & layout->pllr_mask; in at91_clk_register_pll()
486 of_at91_clk_pll_setup(struct device_node *np, struct at91_pmc *pmc, in of_at91_clk_pll_setup() argument
511 clk = at91_clk_register_pll(pmc, irq, name, parent_name, id, layout, in of_at91_clk_pll_setup()
524 struct at91_pmc *pmc) in of_at91rm9200_clk_pll_setup() argument
526 of_at91_clk_pll_setup(np, pmc, &at91rm9200_pll_layout); in of_at91rm9200_clk_pll_setup()
530 struct at91_pmc *pmc) in of_at91sam9g45_clk_pll_setup() argument
532 of_at91_clk_pll_setup(np, pmc, &at91sam9g45_pll_layout); in of_at91sam9g45_clk_pll_setup()
536 struct at91_pmc *pmc) in of_at91sam9g20_clk_pllb_setup() argument
538 of_at91_clk_pll_setup(np, pmc, &at91sam9g20_pllb_layout); in of_at91sam9g20_clk_pllb_setup()
542 struct at91_pmc *pmc) in of_sama5d3_clk_pll_setup() argument
544 of_at91_clk_pll_setup(np, pmc, &sama5d3_pll_layout); in of_sama5d3_clk_pll_setup()