]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
arm-trusted-firmware-mediatek: add Cudy DDR4 target
authorDmitry Mostovoy <stavultras@gmail.com>
Mon, 9 Feb 2026 09:51:15 +0000 (04:51 -0500)
committerRobert Marko <robimarko@gmail.com>
Fri, 27 Mar 2026 10:27:39 +0000 (11:27 +0100)
Since there are some similar devices from Cudy (only WR3000P now)
this will allow to create OpenWrt U-Boot layout for all of them
using same DDR4 target.

Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21943
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/arm-trusted-firmware-mediatek/Makefile

index 7bf0c15c80470e7dc65071136533986884e810e8..c85f69afcfa5b1cd1c0eceb747929a62bc0a0661 100644 (file)
@@ -272,6 +272,16 @@ define Trusted-Firmware-A/mt7981-cudy-ddr3
   FIP_SIZE:=0x200000
 endef
 
+define Trusted-Firmware-A/mt7981-cudy-ddr4
+  NAME:=Cudy (SPI-NAND via SPIM, DDR4)
+  BOOT_DEVICE:=spim-nand
+  BUILD_SUBTARGET:=filogic
+  PLAT:=mt7981
+  DDR_TYPE:=ddr4
+  FIP_OFFSET:=0x3c0000
+  FIP_SIZE:=0x200000
+endef
+
 define Trusted-Firmware-A/mt7986-ram-ddr4
   NAME:=MediaTek MT7986 (RAM, DDR4)
   BOOT_DEVICE:=ram
@@ -710,6 +720,7 @@ TFA_TARGETS:= \
        mt7981-sdmmc-ddr4 \
        mt7981-spim-nand-ddr4 \
        mt7981-cudy-ddr3 \
+       mt7981-cudy-ddr4 \
        mt7986-ram-ddr3 \
        mt7986-emmc-ddr3 \
        mt7986-nor-ddr3 \