Lines Matching defs:rmobile_pd
48 struct rmobile_pm_domain *rmobile_pd = to_rmobile_pd(genpd);
49 unsigned int mask = BIT(rmobile_pd->bit_shift);
52 if (rmobile_pd->suspend) {
53 int ret = rmobile_pd->suspend();
59 if (readl(rmobile_pd->base + PSTR) & mask) {
60 writel(mask, rmobile_pd->base + SPDCR);
62 readl_poll_timeout_atomic(rmobile_pd->base + SPDCR, val,
67 readl(rmobile_pd->base + PSTR));
72 static int __rmobile_pd_power_up(struct rmobile_pm_domain *rmobile_pd)
74 unsigned int val, mask = BIT(rmobile_pd->bit_shift);
77 if (readl(rmobile_pd->base + PSTR) & mask)
80 writel(mask, rmobile_pd->base + SWUCR);
82 ret = readl_poll_timeout_atomic(rmobile_pd->base + SWUCR, val,
87 rmobile_pd->genpd.name, mask,
88 readl(rmobile_pd->base + PSTR));
98 static void rmobile_init_pm_domain(struct rmobile_pm_domain *rmobile_pd)
100 struct generic_pm_domain *genpd = &rmobile_pd->genpd;
101 struct dev_power_governor *gov = rmobile_pd->gov;
110 __rmobile_pd_power_up(rmobile_pd);