Lines Matching refs:pmcreg
51 static struct regmap *pmcreg; variable
115 regmap_read(pmcreg, AT91_PMC_SCSR, &pmc_cache.scsr); in pmc_suspend()
116 regmap_read(pmcreg, AT91_PMC_PCSR, &pmc_cache.pcsr0); in pmc_suspend()
117 regmap_read(pmcreg, AT91_CKGR_UCKR, &pmc_cache.uckr); in pmc_suspend()
118 regmap_read(pmcreg, AT91_CKGR_MOR, &pmc_cache.mor); in pmc_suspend()
119 regmap_read(pmcreg, AT91_CKGR_MCFR, &pmc_cache.mcfr); in pmc_suspend()
120 regmap_read(pmcreg, AT91_CKGR_PLLAR, &pmc_cache.pllar); in pmc_suspend()
121 regmap_read(pmcreg, AT91_PMC_MCKR, &pmc_cache.mckr); in pmc_suspend()
122 regmap_read(pmcreg, AT91_PMC_USB, &pmc_cache.usb); in pmc_suspend()
123 regmap_read(pmcreg, AT91_PMC_IMR, &pmc_cache.imr); in pmc_suspend()
124 regmap_read(pmcreg, AT91_PMC_PCSR1, &pmc_cache.pcsr1); in pmc_suspend()
127 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_suspend()
129 regmap_read(pmcreg, AT91_PMC_PCR, in pmc_suspend()
134 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
144 regmap_read(pmcreg, AT91_PMC_SR, &status); in pmc_ready()
156 regmap_read(pmcreg, AT91_PMC_MCKR, &tmp); in pmc_resume()
159 regmap_read(pmcreg, AT91_CKGR_PLLAR, &tmp); in pmc_resume()
163 regmap_write(pmcreg, AT91_PMC_SCER, pmc_cache.scsr); in pmc_resume()
164 regmap_write(pmcreg, AT91_PMC_PCER, pmc_cache.pcsr0); in pmc_resume()
165 regmap_write(pmcreg, AT91_CKGR_UCKR, pmc_cache.uckr); in pmc_resume()
166 regmap_write(pmcreg, AT91_CKGR_MOR, pmc_cache.mor); in pmc_resume()
167 regmap_write(pmcreg, AT91_CKGR_MCFR, pmc_cache.mcfr); in pmc_resume()
168 regmap_write(pmcreg, AT91_PMC_USB, pmc_cache.usb); in pmc_resume()
169 regmap_write(pmcreg, AT91_PMC_IMR, pmc_cache.imr); in pmc_resume()
170 regmap_write(pmcreg, AT91_PMC_PCER1, pmc_cache.pcsr1); in pmc_resume()
173 regmap_write(pmcreg, AT91_PMC_PCR, in pmc_resume()
179 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()
205 pmcreg = syscon_node_to_regmap(np); in pmc_register_ops()
206 if (IS_ERR(pmcreg)) in pmc_register_ops()
207 return PTR_ERR(pmcreg); in pmc_register_ops()