Lines Matching refs:pmc
24 struct at91_pmc *pmc; member
31 struct at91_pmc *pmc = plldiv->pmc; in clk_plldiv_recalc_rate() local
33 if (pmc_read(pmc, AT91_PMC_MCKR) & AT91_PMC_PLLADIV2) in clk_plldiv_recalc_rate()
60 struct at91_pmc *pmc = plldiv->pmc; in clk_plldiv_set_rate() local
66 pmc_lock(pmc); in clk_plldiv_set_rate()
67 tmp = pmc_read(pmc, AT91_PMC_MCKR) & ~AT91_PMC_PLLADIV2; in clk_plldiv_set_rate()
70 pmc_write(pmc, AT91_PMC_MCKR, tmp); in clk_plldiv_set_rate()
71 pmc_unlock(pmc); in clk_plldiv_set_rate()
83 at91_clk_register_plldiv(struct at91_pmc *pmc, const char *name, in at91_clk_register_plldiv() argument
101 plldiv->pmc = pmc; in at91_clk_register_plldiv()
112 of_at91_clk_plldiv_setup(struct device_node *np, struct at91_pmc *pmc) in of_at91_clk_plldiv_setup() argument
122 clk = at91_clk_register_plldiv(pmc, name, parent_name); in of_at91_clk_plldiv_setup()
132 struct at91_pmc *pmc) in of_at91sam9x5_clk_plldiv_setup() argument
134 of_at91_clk_plldiv_setup(np, pmc); in of_at91sam9x5_clk_plldiv_setup()