summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFil Dunsky2025-12-19 21:28:16 +0000
committerHauke Mehrtens2026-01-02 18:45:43 +0000
commitea9cf727220eb957e9cab6333ba653ba994af59b (patch)
tree9b9ea8de4485be983dfd001f1a6c712b3ad8359f
parent482d5e5c41f30f52409889eb72154c8bc5e0eef6 (diff)
downloadopenwrt-ea9cf727220eb957e9cab6333ba653ba994af59b.tar.gz
arm-trusted-firmware-mediatek: add Cudy DDR3 target
Since there are many similar devices from Cudy (TR3000 / WR3000E / WR3000P / WR3000S / WBR3000UAX) this will allow to create OpenWrt U-Boot layout for all of them using same DDR3 target. Tested-by: 4pda users Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> Link: https://github.com/openwrt/openwrt/pull/21225 (cherry picked from commit f4c9ab659191b19af21a861defb6f9408c9aac44) Link: https://github.com/openwrt/openwrt/pull/21342 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--package/boot/arm-trusted-firmware-mediatek/Makefile6
-rw-r--r--package/boot/uboot-mediatek/Makefile4
-rw-r--r--target/linux/mediatek/image/filogic.mk2
3 files changed, 6 insertions, 6 deletions
diff --git a/package/boot/arm-trusted-firmware-mediatek/Makefile b/package/boot/arm-trusted-firmware-mediatek/Makefile
index 3ce3b582fb..6a41fc52df 100644
--- a/package/boot/arm-trusted-firmware-mediatek/Makefile
+++ b/package/boot/arm-trusted-firmware-mediatek/Makefile
@@ -262,8 +262,8 @@ define Trusted-Firmware-A/mt7981-spim-nand-ubi-ddr4
USE_UBI:=1
endef
-define Trusted-Firmware-A/mt7981-cudy-tr3000-v1
- NAME:=Cudy TR3000 v1 (SPI-NAND via SPIM, DDR3)
+define Trusted-Firmware-A/mt7981-cudy-ddr3
+ NAME:=Cudy (SPI-NAND via SPIM, DDR3)
BOOT_DEVICE:=spim-nand
BUILD_SUBTARGET:=filogic
PLAT:=mt7981
@@ -664,7 +664,7 @@ TFA_TARGETS:= \
mt7981-emmc-ddr4 \
mt7981-sdmmc-ddr4 \
mt7981-spim-nand-ddr4 \
- mt7981-cudy-tr3000-v1 \
+ mt7981-cudy-ddr3 \
mt7986-ram-ddr3 \
mt7986-emmc-ddr3 \
mt7986-nor-ddr3 \
diff --git a/package/boot/uboot-mediatek/Makefile b/package/boot/uboot-mediatek/Makefile
index 2431d4fd96..05a724c7c7 100644
--- a/package/boot/uboot-mediatek/Makefile
+++ b/package/boot/uboot-mediatek/Makefile
@@ -309,9 +309,9 @@ define U-Boot/mt7981_cudy_tr3000-v1
BUILD_DEVICES:=cudy_tr3000-v1-ubootmod
UBOOT_CONFIG:=mt7981_cudy_tr3000-v1
UBOOT_IMAGE:=u-boot.fip
- BL2_BOOTDEV:=cudy-tr3000-v1
+ BL2_BOOTDEV:=cudy-ddr3
BL2_SOC:=mt7981
- DEPENDS:=+trusted-firmware-a-mt7981-cudy-tr3000-v1
+ DEPENDS:=+trusted-firmware-a-mt7981-cudy-ddr3
endef
define U-Boot/mt7981_glinet_gl-mt2500
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 59928b8665..a779b94365 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -1139,7 +1139,7 @@ define Device/cudy_tr3000-v1-ubootmod
IMAGE/sysupgrade.itb := append-kernel | \
fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
ARTIFACTS := preloader.bin bl31-uboot.fip
- ARTIFACT/preloader.bin := mt7981-bl2 cudy-tr3000-v1
+ ARTIFACT/preloader.bin := mt7981-bl2 cudy-ddr3
ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot cudy_tr3000-v1
endef
TARGET_DEVICES += cudy_tr3000-v1-ubootmod