Lines Matching refs:pmc
29 struct at91_pmc *pmc; member
49 struct at91_pmc *pmc = utmi->pmc; in clk_utmi_prepare() local
53 pmc_write(pmc, AT91_CKGR_UCKR, tmp); in clk_utmi_prepare()
55 while (!(pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_LOCKU)) { in clk_utmi_prepare()
58 pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_LOCKU); in clk_utmi_prepare()
67 struct at91_pmc *pmc = utmi->pmc; in clk_utmi_is_prepared() local
69 return !!(pmc_read(pmc, AT91_PMC_SR) & AT91_PMC_LOCKU); in clk_utmi_is_prepared()
75 struct at91_pmc *pmc = utmi->pmc; in clk_utmi_unprepare() local
78 pmc_write(pmc, AT91_CKGR_UCKR, tmp); in clk_utmi_unprepare()
96 at91_clk_register_utmi(struct at91_pmc *pmc, unsigned int irq, in at91_clk_register_utmi() argument
115 utmi->pmc = pmc; in at91_clk_register_utmi()
132 of_at91_clk_utmi_setup(struct device_node *np, struct at91_pmc *pmc) in of_at91_clk_utmi_setup() argument
147 clk = at91_clk_register_utmi(pmc, irq, name, parent_name); in of_at91_clk_utmi_setup()
156 struct at91_pmc *pmc) in of_at91sam9x5_clk_utmi_setup() argument
158 of_at91_clk_utmi_setup(np, pmc); in of_at91sam9x5_clk_utmi_setup()