Lines Matching refs:pmcreg
114 static struct regmap *pmcreg; variable
178 regmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr); in pmc_suspend()
179 regmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0); in pmc_suspend()
180 regmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr); in pmc_suspend()
181 regmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor); in pmc_suspend()
182 regmap_read(pmcreg, AT91_CKGR_MCFR, &pmc_cache.mcfr); in pmc_suspend()
183 regmap_read(pmcreg, AT91_CKGR_PLLAR, &pmc_cache.pllar); in pmc_suspend()
184 regmap_read(pmcreg, AT91_PMC_MCKR, &pmc_cache.mckr); in pmc_suspend()
185 regmap_read(pmcreg, AT91_PMC_USB, &pmc_cache.usb); in pmc_suspend()
186 regmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.imr); in pmc_suspend()
187 regmap_read(pmcreg, AT91_PMC_PCSR1, &pmc_cache.pcsr1); in pmc_suspend()
190 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_suspend()
192 regmap_read(pmcreg, AT91_PMC_PCR, in pmc_suspend()
197 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
207 regmap_read(pmcreg, AT91_PMC_SR, &status); in pmc_ready()
219 regmap_read(pmcreg, AT91_PMC_MCKR, &tmp); in pmc_resume()
222 regmap_read(pmcreg, AT91_CKGR_PLLAR, &tmp); in pmc_resume()
226 regmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr); in pmc_resume()
227 regmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0); in pmc_resume()
228 regmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr); in pmc_resume()
229 regmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor); in pmc_resume()
230 regmap_write(pmcreg, AT91_CKGR_MCFR, pmc_cache.mcfr); in pmc_resume()
231 regmap_write(pmcreg, AT91_PMC_USB, pmc_cache.usb); in pmc_resume()
232 regmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.imr); in pmc_resume()
233 regmap_write(pmcreg, AT91_PMC_PCER1, pmc_cache.pcsr1); in pmc_resume()
236 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_resume()
242 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()
270 pmcreg = device_node_to_regmap(np); in pmc_register_ops()
272 if (IS_ERR(pmcreg)) in pmc_register_ops()
273 return PTR_ERR(pmcreg); in pmc_register_ops()