]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
arm-trusted-firmware-mediatek: mt7981-ram-ddr3: reduce ddr3 freq to 1866MHz
authorMikhail Zhilkin <csharper2005@gmail.com>
Mon, 15 Sep 2025 18:53:25 +0000 (21:53 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Sep 2025 21:11:53 +0000 (23:11 +0200)
This fixes stability issues on certain devices.

Fixes: https://github.com/openwrt/openwrt/issues/20046
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20059
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/arm-trusted-firmware-mediatek/Makefile

index 5411594ecca4b2d2a36097c812178f2589fe645a..0c6529e524f3220c2504918315a839dcec60924d 100644 (file)
@@ -29,6 +29,7 @@ define Trusted-Firmware-A/Default
   HIDDEN:=y
   BOOT_DEVICE:=
   DDR3_FLYBY:=
+  DDR3_FREQ_1866:=
   DDR_TYPE:=
   NAND_TYPE:=
   BOARD_QFN:=
@@ -178,6 +179,7 @@ define Trusted-Firmware-A/mt7981-ram-ddr3
   BUILD_SUBTARGET:=filogic
   PLAT:=mt7981
   DDR_TYPE:=ddr3
+  DDR3_FREQ_1866:=1
   RAM_BOOT_UART_DL:=1
   HIDDEN:=
   DEFAULT:=TARGET_mediatek_filogic
@@ -611,6 +613,7 @@ TFA_MAKE_FLAGS += \
        $(if $(NAND_TYPE),NAND_TYPE=$(NAND_TYPE)) \
        HAVE_DRAM_OBJ_FILE=yes \
        $(if $(DDR3_FLYBY),DDR3_FLYBY=1) \
+       $(if $(DDR3_FREQ_1866),DDR3_FREQ_1866=1) \
        $(if $(DRAM_USE_COMB),DRAM_USE_COMB=1) \
        $(if $(RAM_BOOT_UART_DL),RAM_BOOT_UART_DL=1) \
        $(if $(USE_UBI),UBI=1 $(if $(findstring mt7622,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x80000)) \