From: John Crispin Date: Fri, 17 Jan 2025 10:25:18 +0000 (+0100) Subject: arm-trusted-firmware-mediatek: add MT7988 BL2 DDR4 images X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e17856c9ef3308299ddcc27afb44f4d3fb94ca25;p=thirdparty%2Fopenwrt.git arm-trusted-firmware-mediatek: add MT7988 BL2 DDR4 images Other than most boards with DDR4 the ASUS ZenWiFi BT8 cannot use the "comb" DDR calibration option and needs only the "ddr4" option set instead. Build TF-A SPIM-NAND with UBI as well as to boot from RAM with mtk_uartboot for MT7988 with DDR4 RAM. Signed-off-by: John Crispin --- diff --git a/package/boot/arm-trusted-firmware-mediatek/Makefile b/package/boot/arm-trusted-firmware-mediatek/Makefile index 0b68d510c5b..da538d2277a 100644 --- a/package/boot/arm-trusted-firmware-mediatek/Makefile +++ b/package/boot/arm-trusted-firmware-mediatek/Makefile @@ -452,6 +452,17 @@ define Trusted-Firmware-A/mt7988-ram-comb DEFAULT:=TARGET_mediatek_filogic endef +define Trusted-Firmware-A/mt7988-ram-ddr4 + NAME:=MediaTek MT7988 (RAM/ddr4) + BOOT_DEVICE:=ram + BUILD_SUBTARGET:=filogic + PLAT:=mt7988 + RAM_BOOT_UART_DL:=1 + HIDDEN:= + DEFAULT:=TARGET_mediatek_filogic + DDR_TYPE:=ddr4 +endef + define Trusted-Firmware-A/mt7988-nor-comb NAME:=MediaTek MT7988 (SPI-NOR) BOOT_DEVICE:=nor @@ -510,6 +521,15 @@ define Trusted-Firmware-A/mt7988-spim-nand-ubi-comb USE_UBI:=1 endef +define Trusted-Firmware-A/mt7988-spim-nand-ubi-ddr4 + NAME:=MediaTek MT7988 (SPI-NAND via SPIM, DDR4) + BOOT_DEVICE:=spim-nand + BUILD_SUBTARGET:=filogic + PLAT:=mt7988 + DDR_TYPE:=ddr4 + USE_UBI:=1 +endef + TFA_TARGETS:= \ mt7622-nor-1ddr \ mt7622-nor-2ddr \ @@ -560,13 +580,15 @@ TFA_TARGETS:= \ mt7988-snand-ddr4 \ mt7988-spim-nand-ddr4 \ mt7988-ram-comb \ + mt7988-ram-ddr4 \ mt7988-emmc-comb \ mt7988-nor-comb \ mt7988-sdmmc-comb \ mt7988-snand-comb \ mt7988-snand-ubi-comb \ mt7988-spim-nand-comb \ - mt7988-spim-nand-ubi-comb + mt7988-spim-nand-ubi-comb \ + mt7988-spim-nand-ubi-ddr4 TFA_MAKE_FLAGS += \ BOOT_DEVICE=$(BOOT_DEVICE) \ @@ -594,6 +616,7 @@ Package/trusted-firmware-a-mt7981-ram-ddr4/install = $(Package/trusted-firmware- Package/trusted-firmware-a-mt7986-ram-ddr3/install = $(Package/trusted-firmware-a-ram/install) Package/trusted-firmware-a-mt7986-ram-ddr4/install = $(Package/trusted-firmware-a-ram/install) Package/trusted-firmware-a-mt7988-ram-comb/install = $(Package/trusted-firmware-a-ram/install) +Package/trusted-firmware-a-mt7988-ram-ddr4/install = $(Package/trusted-firmware-a-ram/install) define Package/trusted-firmware-a/install $(INSTALL_DIR) $(STAGING_DIR_IMAGE)