summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8188/Kconfig
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2022-08-10 18:23:01 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-08-31 16:52:13 +0000
commitc23235e7dd939efa6ef6daecdd39a87e3ee4bfcc (patch)
treecbb40d9b6f28ed824e8ceceb2225303c3c0ab5a0 /src/soc/mediatek/mt8188/Kconfig
parent9d638a95167781671dd0f982b1e6c2194c7f22eb (diff)
soc/mediatek/mt8188: Add SPM loader and initialize SPM in RAM stage
Add support for loading SPM firmware from CBFS to SPM SRAM. SPM needs its own firmware to enable SPM suspend/resume function which turns off several resources such as DRAM/mainpll/26M clk when linux system suspend. SPM is an essential component on MediaTek SoC, so we initialize PPM in soc_init(). For MT8188, SPM will handshake with DPM to do initialization, so we need to call spm_init() after dpm_init(). This SPM flow adds 33ms to the boot time. firmware log: mtk_init_mcu: Loaded (and reset) spm_firmware.bin in 25 msecs SPM: spm_init done in 33 msecs, spm pc = 0x400 TEST=spm pc is 0x400 which is in idle state. BUG=b:236331724 Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com> Change-Id: I1a1f49383e0ceadc259a18272fc1c277b65406ae Reviewed-on: https://review.coreboot.org/c/coreboot/+/66973 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8188/Kconfig')
-rw-r--r--src/soc/mediatek/mt8188/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8188/Kconfig b/src/soc/mediatek/mt8188/Kconfig
index e42f6a38e8..972170edb2 100644
--- a/src/soc/mediatek/mt8188/Kconfig
+++ b/src/soc/mediatek/mt8188/Kconfig
@@ -39,6 +39,12 @@ config MCUPM_FIRMWARE
help
The file name of the MediaTek MCUPM firmware.
+config SPM_FIRMWARE
+ string
+ default "spm_firmware.bin"
+ help
+ The file name of the MediaTek SPM firmware.
+
config SSPM_FIRMWARE
string
default "sspm.bin"