summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/mtcmos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common/mtcmos.c')
-rw-r--r--src/soc/mediatek/common/mtcmos.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/mtcmos.c b/src/soc/mediatek/common/mtcmos.c
index 52bd46810e..2f4bd22d54 100644
--- a/src/soc/mediatek/common/mtcmos.c
+++ b/src/soc/mediatek/common/mtcmos.c
@@ -14,11 +14,19 @@ enum {
PWR_RST_B = 1U << 0
};
+__weak void mtcmos_set_scpd_ext_buck_iso(const struct power_domain_data *pd)
+{
+ /* do nothing */
+}
+
void mtcmos_power_on(const struct power_domain_data *pd)
{
write32(&mtk_spm->poweron_config_set,
(SPM_PROJECT_CODE << 16) | (1U << 0));
+ if (pd->caps & SCPD_EXT_BUCK_ISO)
+ mtcmos_set_scpd_ext_buck_iso(pd);
+
setbits32(pd->pwr_con, PWR_ON);
setbits32(pd->pwr_con, PWR_ON_2ND);