summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/common/Kconfig7
-rw-r--r--src/soc/mediatek/common/pmif.c2
-rw-r--r--src/soc/mediatek/mt8186/Kconfig1
3 files changed, 9 insertions, 1 deletions
diff --git a/src/soc/mediatek/common/Kconfig b/src/soc/mediatek/common/Kconfig
index 119746b497..ce9f883356 100644
--- a/src/soc/mediatek/common/Kconfig
+++ b/src/soc/mediatek/common/Kconfig
@@ -63,4 +63,11 @@ config FLASH_DUAL_IO_READ
When this option is enabled, the flash controller provides the ability
to dual IO read mode.
+config PWRAP_WITH_PMIF_SPMI
+ bool
+ default n
+ help
+ When this option is enabled, the PMIC interface only supports PWRAP
+ and PMIF_SPMI.
+
endif
diff --git a/src/soc/mediatek/common/pmif.c b/src/soc/mediatek/common/pmif.c
index a7ab4e5fa5..a7076eead2 100644
--- a/src/soc/mediatek/common/pmif.c
+++ b/src/soc/mediatek/common/pmif.c
@@ -297,7 +297,7 @@ int mtk_pmif_init(void)
ret = pmif_clk_init();
if (!ret)
ret = pmif_spmi_init(get_pmif_controller(PMIF_SPMI, SPMI_MASTER_0));
- if (!ret)
+ if (!ret && !CONFIG(PWRAP_WITH_PMIF_SPMI))
ret = pmif_spi_init(get_pmif_controller(PMIF_SPI, 0));
return ret;
diff --git a/src/soc/mediatek/mt8186/Kconfig b/src/soc/mediatek/mt8186/Kconfig
index db5bed217f..bac220e89e 100644
--- a/src/soc/mediatek/mt8186/Kconfig
+++ b/src/soc/mediatek/mt8186/Kconfig
@@ -12,6 +12,7 @@ config SOC_MEDIATEK_MT8186
select MEDIATEK_BLOB_FAST_INIT
select USE_CBMEM_DRAM_INFO
select FLASH_DUAL_IO_READ
+ select PWRAP_WITH_PMIF_SPMI
if SOC_MEDIATEK_MT8186