Home
last modified time | relevance | path

Searched refs:zpd (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/soc/zte/
Dzx2967_pm_domains.c15 #define PCU_DM_CLKEN(zpd) ((zpd)->reg_offset[REG_CLKEN]) argument
16 #define PCU_DM_ISOEN(zpd) ((zpd)->reg_offset[REG_ISOEN]) argument
17 #define PCU_DM_RSTEN(zpd) ((zpd)->reg_offset[REG_RSTEN]) argument
18 #define PCU_DM_PWREN(zpd) ((zpd)->reg_offset[REG_PWREN]) argument
19 #define PCU_DM_ACK_SYNC(zpd) ((zpd)->reg_offset[REG_ACK_SYNC]) argument
25 struct zx2967_pm_domain *zpd = (struct zx2967_pm_domain *)domain; in zx2967_power_on() local
29 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 …]
/Linux-v5.10/arch/arm/mach-zx/
Dzx296702-pm-domain.c40 struct zx_pm_domain *zpd = (struct zx_pm_domain *)domain; in normal_power_off() local
45 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() local
81 tmp &= ~BIT(zpd->bit); in normal_power_on()
[all …]