summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Lu <roger.lu@mediatek.com>2020-07-13 15:13:26 +0800
committerYidi Lin <yidi.lin@mediatek.com>2020-12-15 10:52:12 +0800
commitc972ecc5083835d197f6e0abf49ac649f942b187 (patch)
tree0a93a57f2c7a7f315f2b431d5cfc635f28899549
parent052bfa6dcbf052de0a219f8d1fb435216cbb9f96 (diff)
downloadblobs-c972ecc5083835d197f6e0abf49ac649f942b187.tar.gz
soc/mediatek/mt8192: add SPM firmware
Support SPM suspend at the end of system suspend. BUG=b:159079649,b:173653085 TEST=Asurada boots up to shell Signed-off-by: Roger Lu <roger.lu@mediatek.com> Change-Id: I7dfa4a8a7ac585dcc8eb158d2db5a2a89436389d
-rw-r--r--soc/mediatek/mt8192/README.md22
-rw-r--r--soc/mediatek/mt8192/spm_firmware.binbin0 -> 10112 bytes
-rw-r--r--soc/mediatek/mt8192/spm_firmware.bin.md51
-rw-r--r--soc/mediatek/mt8192/spm_release_notes.txt4
4 files changed, 27 insertions, 0 deletions
diff --git a/soc/mediatek/mt8192/README.md b/soc/mediatek/mt8192/README.md
index b53814d..ff4b066 100644
--- a/soc/mediatek/mt8192/README.md
+++ b/soc/mediatek/mt8192/README.md
@@ -2,6 +2,7 @@
- drame.elf
- dpm.dm
- dpm.pm
+- spm_firmware.bin
--------------------------------------------------------------------------------
# `dram.elf` Introduction
@@ -98,3 +99,24 @@ They are loaded into DPM SRAM when system inits.
## Version
- No version yet.
+
+--------------------------------------------------------------------------------
+# SPM Introduction
+
+SPM is able to turn off more power such as DRAM self-refresh mode and 26M clock off
+when system is in suspend. Also, SPM helps support Vcore DVFS feature.
+
+## Who uses it
+ - Linux kernel system suspend and Vcore DVFS.
+
+## How to load `spm_fimware.bin`
+ - Use CBFS to load "spm_fimware.bin" to DRAM and SPM DMA loads it from dram to SPM SRAM.
+
+## Return Values
+ SPM driver in coreboot checks if pmem_words/dmem_words are 16-byte aligned in `spm_fimware.bin`
+ - yes : SPM DMA can load `spm_fimware.bin` to SPM SRAM correctly.
+ - no : assert(0)
+
+## Version
+ Search "spmfw (version" will show log like below
+ - spmfw (version pcm_suspend_v1.43_no_GPU_WAYEN)
diff --git a/soc/mediatek/mt8192/spm_firmware.bin b/soc/mediatek/mt8192/spm_firmware.bin
new file mode 100644
index 0000000..8943f0c
--- /dev/null
+++ b/soc/mediatek/mt8192/spm_firmware.bin
Binary files differ
diff --git a/soc/mediatek/mt8192/spm_firmware.bin.md5 b/soc/mediatek/mt8192/spm_firmware.bin.md5
new file mode 100644
index 0000000..5b10145
--- /dev/null
+++ b/soc/mediatek/mt8192/spm_firmware.bin.md5
@@ -0,0 +1 @@
+474883cf1437b8ead0dd4363a8d234f4 *spm_firmware.bin
diff --git a/soc/mediatek/mt8192/spm_release_notes.txt b/soc/mediatek/mt8192/spm_release_notes.txt
new file mode 100644
index 0000000..273c83c
--- /dev/null
+++ b/soc/mediatek/mt8192/spm_release_notes.txt
@@ -0,0 +1,4 @@
+** Build from MediaTek Internal **
+
+# 2020.07
+1. Support SPM suspend at the end of system suspend.