Attention is currently required from: Hung-Te Lin, Yidi Lin, Yu-Ping Wu.
Jarried Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86014?usp=email )
Change subject: soc/mediatek/mt8196: Add mtk-fsp loader in romstage ......................................................................
soc/mediatek/mt8196: Add mtk-fsp loader in romstage
BUG=b:373797027 TEST=build pass
Signed-off-by: Jarried Lin jarried.lin@mediatek.corp-partner.google.com Change-Id: I73710227e6d9e3f0c717e17db0cc798265eb1f72 --- M src/soc/mediatek/mt8196/Makefile.mk M src/soc/mediatek/mt8196/include/soc/memlayout.ld 2 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/86014/1
diff --git a/src/soc/mediatek/mt8196/Makefile.mk b/src/soc/mediatek/mt8196/Makefile.mk index ec5abe3..fe39b4e 100644 --- a/src/soc/mediatek/mt8196/Makefile.mk +++ b/src/soc/mediatek/mt8196/Makefile.mk @@ -96,6 +96,14 @@ $(DRAM_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG) cbfs-files-y += $(DRAM_CBFS)
+FSP_CBFS := $(CONFIG_CBFS_PREFIX)/mtk_fsp_romstage +$(FSP_CBFS)-file := $(MT8196_BLOB_DIR)/mtk_fsp_romstage.elf +$(FSP_CBFS)-type := stage +$(FSP_CBFS)-compression := $(CBFS_COMPRESS_FLAG) +ifneq ($(wildcard $($(FSP_CBFS)-file)),) + cbfs-files-y += $(FSP_CBFS) +endif + FSP_CBFS := $(CONFIG_CBFS_PREFIX)/mtk_fsp_ramstage $(FSP_CBFS)-file := $(MT8196_BLOB_DIR)/mtk_fsp_ramstage.elf $(FSP_CBFS)-type := stage diff --git a/src/soc/mediatek/mt8196/include/soc/memlayout.ld b/src/soc/mediatek/mt8196/include/soc/memlayout.ld index b7ef15a..653ea49 100644 --- a/src/soc/mediatek/mt8196/include/soc/memlayout.ld +++ b/src/soc/mediatek/mt8196/include/soc/memlayout.ld @@ -57,6 +57,7 @@ OVERLAP_DECOMPRESSOR_VERSTAGE_ROMSTAGE(0x02096000, 272K) PRERAM_CBFS_CACHE(0x020DA000, 48K) PRERAM_CBMEM_CONSOLE(0x020E6000, 340K) + FSP_INIT_CODE(0x02140000, 64K) SRAM_L2C_END(0x02200000)
DRAM_START(0x80000000)