Skip to content

Commit f4c9ab6

Browse files
fildunskyhauke
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21225 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 01a87f4 commit f4c9ab6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package/boot/arm-trusted-firmware-mediatek/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ define Trusted-Firmware-A/mt7981-spim-nand-ubi-ddr4
262262
USE_UBI:=1
263263
endef
264264

265-
define Trusted-Firmware-A/mt7981-cudy-tr3000-v1
266-
NAME:=Cudy TR3000 v1 (SPI-NAND via SPIM, DDR3)
265+
define Trusted-Firmware-A/mt7981-cudy-ddr3
266+
NAME:=Cudy (SPI-NAND via SPIM, DDR3)
267267
BOOT_DEVICE:=spim-nand
268268
BUILD_SUBTARGET:=filogic
269269
PLAT:=mt7981
@@ -664,7 +664,7 @@ TFA_TARGETS:= \
664664
mt7981-emmc-ddr4 \
665665
mt7981-sdmmc-ddr4 \
666666
mt7981-spim-nand-ddr4 \
667-
mt7981-cudy-tr3000-v1 \
667+
mt7981-cudy-ddr3 \
668668
mt7986-ram-ddr3 \
669669
mt7986-emmc-ddr3 \
670670
mt7986-nor-ddr3 \

package/boot/uboot-mediatek/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ define U-Boot/mt7981_cudy_tr3000-v1
309309
BUILD_DEVICES:=cudy_tr3000-v1-ubootmod
310310
UBOOT_CONFIG:=mt7981_cudy_tr3000-v1
311311
UBOOT_IMAGE:=u-boot.fip
312-
BL2_BOOTDEV:=cudy-tr3000-v1
312+
BL2_BOOTDEV:=cudy-ddr3
313313
BL2_SOC:=mt7981
314-
DEPENDS:=+trusted-firmware-a-mt7981-cudy-tr3000-v1
314+
DEPENDS:=+trusted-firmware-a-mt7981-cudy-ddr3
315315
endef
316316

317317
define U-Boot/mt7981_glinet_gl-mt2500

target/linux/mediatek/image/filogic.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ define Device/cudy_tr3000-v1-ubootmod
11391139
IMAGE/sysupgrade.itb := append-kernel | \
11401140
fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-static-with-rootfs | append-metadata
11411141
ARTIFACTS := preloader.bin bl31-uboot.fip
1142-
ARTIFACT/preloader.bin := mt7981-bl2 cudy-tr3000-v1
1142+
ARTIFACT/preloader.bin := mt7981-bl2 cudy-ddr3
11431143
ARTIFACT/bl31-uboot.fip := mt7981-bl31-uboot cudy_tr3000-v1
11441144
endef
11451145
TARGET_DEVICES += cudy_tr3000-v1-ubootmod

0 commit comments

Comments
 (0)