Searched refs:zpd (Results 1 – 2 of 2) sorted by relevance
15 #define PCU_DM_CLKEN(zpd) ((zpd)->reg_offset[REG_CLKEN]) argument16 #define PCU_DM_ISOEN(zpd) ((zpd)->reg_offset[REG_ISOEN]) argument17 #define PCU_DM_RSTEN(zpd) ((zpd)->reg_offset[REG_RSTEN]) argument18 #define PCU_DM_PWREN(zpd) ((zpd)->reg_offset[REG_PWREN]) argument19 #define PCU_DM_ACK_SYNC(zpd) ((zpd)->reg_offset[REG_ACK_SYNC]) argument25 struct zx2967_pm_domain *zpd = (struct zx2967_pm_domain *)domain; in zx2967_power_on() local29 val = readl_relaxed(pcubase + PCU_DM_PWREN(zpd)); in zx2967_power_on()30 if (zpd->polarity == PWREN) in zx2967_power_on()31 val |= BIT(zpd->bit); in zx2967_power_on()33 val &= ~BIT(zpd->bit); in zx2967_power_on()[all …]
40 struct zx_pm_domain *zpd = (struct zx_pm_domain *)domain; in normal_power_off() local45 tmp &= ~BIT(zpd->bit); in normal_power_off()50 tmp &= ~BIT(zpd->bit); in normal_power_off()51 writel_relaxed(tmp | BIT(zpd->bit), pcubase + PCU_DM_ISOEN); in normal_power_off()55 tmp &= ~BIT(zpd->bit); in normal_power_off()60 tmp &= ~BIT(zpd->bit); in normal_power_off()61 writel_relaxed(tmp | BIT(zpd->bit), pcubase + PCU_DM_PWRDN); in normal_power_off()63 tmp = readl_relaxed(pcubase + PCU_DM_ACK_SYNC) & BIT(zpd->bit); in normal_power_off()76 struct zx_pm_domain *zpd = (struct zx_pm_domain *)domain; in normal_power_on() local81 tmp &= ~BIT(zpd->bit); in normal_power_on()[all …]