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