Lines Matching refs:pmc_regs
105 static struct mpc83xx_pmc __iomem *pmc_regs; variable
123 u32 reg_cfg1 = in_be32(&pmc_regs->config1); in mpc83xx_change_state()
133 out_be32(&pmc_regs->config1, reg_cfg1); in mpc83xx_change_state()
145 u32 event = in_be32(&pmc_regs->event); in pmc_irq_handler()
152 out_be32(&pmc_regs->event, event); in pmc_irq_handler()
185 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
186 in_be32(&pmc_regs->config1) | PMCCR1_PME_EN); in mpc83xx_suspend_enter()
194 out_be32(&pmc_regs->config, PMCCR_SLPEN | PMCCR_DLPEN); in mpc83xx_suspend_enter()
204 out_be32(&pmc_regs->mask, PMCER_ALL); in mpc83xx_suspend_enter()
206 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
207 in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF); in mpc83xx_suspend_enter()
213 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
214 in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF); in mpc83xx_suspend_enter()
216 out_be32(&pmc_regs->mask, PMCER_PMCI); in mpc83xx_suspend_enter()
220 out_be32(&pmc_regs->mask, PMCER_PMCI); in mpc83xx_suspend_enter()
228 out_be32(&pmc_regs->config1, in mpc83xx_suspend_enter()
229 in_be32(&pmc_regs->config1) & ~PMCCR1_PME_EN); in mpc83xx_suspend_enter()
291 out_be32(&pmc_regs->config1, PMCCR1_USE_STATE); in mpc83xx_set_agent()
292 out_be32(&pmc_regs->mask, PMCER_PMCI); in mpc83xx_set_agent()
376 pmc_regs = ioremap(res.start, sizeof(*pmc_regs)); in pmc_probe()
378 if (!pmc_regs) { in pmc_probe()
414 iounmap(pmc_regs); in pmc_probe()