Lines Matching refs:pmcreg
124 static struct regmap *pmcreg; variable
188 regmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr); in pmc_suspend()
189 regmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0); in pmc_suspend()
190 regmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr); in pmc_suspend()
191 regmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor); in pmc_suspend()
192 regmap_read(pmcreg, AT91_CKGR_MCFR, &pmc_cache.mcfr); in pmc_suspend()
193 regmap_read(pmcreg, AT91_CKGR_PLLAR, &pmc_cache.pllar); in pmc_suspend()
194 regmap_read(pmcreg, AT91_PMC_MCKR, &pmc_cache.mckr); in pmc_suspend()
195 regmap_read(pmcreg, AT91_PMC_USB, &pmc_cache.usb); in pmc_suspend()
196 regmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.imr); in pmc_suspend()
197 regmap_read(pmcreg, AT91_PMC_PCSR1, &pmc_cache.pcsr1); in pmc_suspend()
200 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_suspend()
202 regmap_read(pmcreg, AT91_PMC_PCR, in pmc_suspend()
207 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
217 regmap_read(pmcreg, AT91_PMC_SR, &status); in pmc_ready()
229 regmap_read(pmcreg, AT91_PMC_MCKR, &tmp); in pmc_resume()
232 regmap_read(pmcreg, AT91_CKGR_PLLAR, &tmp); in pmc_resume()
236 regmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr); in pmc_resume()
237 regmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0); in pmc_resume()
238 regmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr); in pmc_resume()
239 regmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor); in pmc_resume()
240 regmap_write(pmcreg, AT91_CKGR_MCFR, pmc_cache.mcfr); in pmc_resume()
241 regmap_write(pmcreg, AT91_PMC_USB, pmc_cache.usb); in pmc_resume()
242 regmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.imr); in pmc_resume()
243 regmap_write(pmcreg, AT91_PMC_PCER1, pmc_cache.pcsr1); in pmc_resume()
246 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_resume()
252 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()
278 pmcreg = device_node_to_regmap(np); in pmc_register_ops()
279 if (IS_ERR(pmcreg)) in pmc_register_ops()
280 return PTR_ERR(pmcreg); in pmc_register_ops()