]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
arm-trusted-firmware-mediatek: add MT7988 BL2 DDR4 images
authorJohn Crispin <john@phrozen.org>
Fri, 17 Jan 2025 10:25:18 +0000 (11:25 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 30 Mar 2025 01:02:58 +0000 (02:02 +0100)
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 <john@phrozen.org>
package/boot/arm-trusted-firmware-mediatek/Makefile

index 0b68d510c5b6b7f984e75d0059d9f5b45cd75422..da538d2277aa2194f6d1af8f2585da53fdcff51d 100644 (file)
@@ -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)