Searched refs:scpd (Results 1 – 2 of 2) sorted by relevance
70 struct scp_domain *scpd; member191 struct scp_domain *scpd = data->scpd; in scpsys_domain_is_on() local192 u32 sta = readl(scpd->base + SPM_PWR_STATUS) & in scpsys_domain_is_on()194 u32 sta2 = readl(scpd->base + SPM_PWR_STATUS_2ND) & in scpsys_domain_is_on()211 struct scp_domain *scpd = dev_get_priv(power_domain->dev); in scpsys_power_on() local212 struct scp_domain_data *data = &scpd->data[power_domain->id]; in scpsys_power_on()213 void __iomem *ctl_addr = scpd->base + data->ctl_offs; in scpsys_power_on()218 writel(SPM_EN, scpd->base); in scpsys_power_on()249 ret = mtk_infracfg_clear_bus_protection(scpd->infracfg, in scpsys_power_on()260 struct scp_domain *scpd = dev_get_priv(power_domain->dev); in scpsys_power_off() local[all …]
172 static int scpsys_domain_is_on(struct scp_domain *scpd) in scpsys_domain_is_on() argument174 struct scp *scp = scpd->scp; in scpsys_domain_is_on()177 scpd->data->sta_mask; in scpsys_domain_is_on()179 scpd->data->sta_mask; in scpsys_domain_is_on()194 static int scpsys_regulator_enable(struct scp_domain *scpd) in scpsys_regulator_enable() argument196 if (!scpd->supply) in scpsys_regulator_enable()199 return regulator_enable(scpd->supply); in scpsys_regulator_enable()202 static int scpsys_regulator_disable(struct scp_domain *scpd) in scpsys_regulator_disable() argument204 if (!scpd->supply) in scpsys_regulator_disable()207 return regulator_disable(scpd->supply); in scpsys_regulator_disable()[all …]