From 79359ffe478d5bbcfe4cf4b33ee046bedaef7ab4 Mon Sep 17 00:00:00 2001 From: Dmitry Mostovoy Date: Mon, 9 Feb 2026 04:51:15 -0500 Subject: [PATCH] arm-trusted-firmware-mediatek: add Cudy DDR4 target 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 Link: https://github.com/openwrt/openwrt/pull/21943 (cherry picked from commit 1bf57600cf7b6be6791a2283c44b58329e9f9455) Link: https://github.com/openwrt/openwrt/pull/22625 Signed-off-by: Robert Marko --- package/boot/arm-trusted-firmware-mediatek/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/boot/arm-trusted-firmware-mediatek/Makefile b/package/boot/arm-trusted-firmware-mediatek/Makefile index 829ff3f608..91530b097b 100644 --- a/package/boot/arm-trusted-firmware-mediatek/Makefile +++ b/package/boot/arm-trusted-firmware-mediatek/Makefile @@ -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 @@ -682,6 +692,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 \