Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/power/domain/
H A Dmtk-power-domain.c70 struct scp_domain *scpd; member
191 struct scp_domain *scpd = data->scpd; in scpsys_domain_is_on() local
192 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() local
212 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 …]
/openbmc/linux/drivers/pmdomain/mediatek/
H A Dmtk-scpsys.c172 static int scpsys_domain_is_on(struct scp_domain *scpd) in scpsys_domain_is_on() argument
174 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() argument
196 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() argument
204 if (!scpd->supply) in scpsys_regulator_disable()
207 return regulator_disable(scpd->supply); in scpsys_regulator_disable()
[all …]