From a5362f6d73b847904d033d7208273573ffb52659 Mon Sep 17 00:00:00 2001 From: Jarried Lin Date: Thu, 22 Feb 2024 15:48:37 +0800 Subject: [PATCH] soc/mediatek/mt8196: Enable ARM Trusted Firmware integration Enable configuration to build with MT8196 arm-trusted-firmware drivers. TEST=build pass BUG=b:317009620 Change-Id: I516e648f78b74cc5ea82f52084d5b9dbaeb6f7f0 Signed-off-by: Jarried Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/85503 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin --- src/soc/mediatek/mt8196/Kconfig | 1 + src/soc/mediatek/mt8196/Makefile.mk | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/soc/mediatek/mt8196/Kconfig b/src/soc/mediatek/mt8196/Kconfig index c934761ffb..984e379f45 100644 --- a/src/soc/mediatek/mt8196/Kconfig +++ b/src/soc/mediatek/mt8196/Kconfig @@ -7,6 +7,7 @@ config SOC_MEDIATEK_MT8196 select ARCH_VERSTAGE_ARMV8_64 select ARCH_ROMSTAGE_ARMV8_64 select ARCH_RAMSTAGE_ARMV8_64 + select ARM64_USE_ARM_TRUSTED_FIRMWARE select HAVE_UART_SPECIAL select CACHE_MRC_SETTINGS select MEDIATEK_DRAM_BLOB_FAST_INIT diff --git a/src/soc/mediatek/mt8196/Makefile.mk b/src/soc/mediatek/mt8196/Makefile.mk index 9d00a2e196..3f76811abc 100644 --- a/src/soc/mediatek/mt8196/Makefile.mk +++ b/src/soc/mediatek/mt8196/Makefile.mk @@ -29,6 +29,7 @@ romstage-y += ../common/memory.c memory.c romstage-y += ../common/memory_test.c romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c +ramstage-$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE) += ../common/bl31.c ramstage-y += ../common/dpm_v2.c ramstage-y += dramc_info.c ramstage-y += ../common/early_init.c @@ -40,6 +41,8 @@ ramstage-$(CONFIG_PCI) += ../common/pcie.c pcie.c ramstage-y += soc.c ramstage-y += ../common/usb.c usb.c +BL31_MAKEARGS += PLAT=mt8196 + CPPFLAGS_common += -Isrc/soc/mediatek/mt8196/include CPPFLAGS_common += -Isrc/soc/mediatek/common/include