summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8196/Makefile.mk
diff options
context:
space:
mode:
authorJarried Lin <jarried.lin@mediatek.corp-partner.google.com>2024-08-16 10:33:17 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-08-24 13:00:04 +0000
commit6c8974b5c746b37e31365d511c7499c3e5887cb8 (patch)
tree5bcde54b9acd327592f9438fcb8f8052d922f10e /src/soc/mediatek/mt8196/Makefile.mk
parentabf34584dbfecdd74db36dd24f6008d1051a96a9 (diff)
soc/mediatek/mt8196: Enable MMU operation for L2C SRAM and DMA
- Turn off L2C SRAM and reconfigure as L2 cache: Mediatek SoC uses part of the L2 cache as SRAM before DRAM is ready. After DRAM is ready, we should invoke disable_l2c_sram to reconfigure the L2C SRAM as L2 cache. - Configure DMA buffer in DRAM: Set DRAM DMA to be non-cacheable to load blob correctly. TEST=build pass, register(disable_l2c) read ok BUG=b:317009620 Change-Id: I6a3cb63d3418f085f5d8d08b282dd59ea431c294 Signed-off-by: Jarried Lin <jarried.lin@mediatek.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83925 Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8196/Makefile.mk')
-rw-r--r--src/soc/mediatek/mt8196/Makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8196/Makefile.mk b/src/soc/mediatek/mt8196/Makefile.mk
index 96aea39986..44fa59e927 100644
--- a/src/soc/mediatek/mt8196/Makefile.mk
+++ b/src/soc/mediatek/mt8196/Makefile.mk
@@ -13,8 +13,12 @@ bootblock-y += ../common/mmu_operations.c
romstage-y += ../common/cbmem.c
romstage-y += emi.c
+romstage-y += l2c_ops.c
+romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
ramstage-y += emi.c
+ramstage-y += l2c_ops.c
+ramstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
ramstage-y += soc.c
CPPFLAGS_common += -Isrc/soc/mediatek/mt8196/include