Skip to content

Commit f037a2e

Browse files
aiamadeushauke
authored andcommitted
arm-trusted-firmware-mediatek: add MT7987 DDR4 4BG images
Add the DDR4_4BG_MODE option, which supports 4GB DDR4 RAM for the MT7987 and 8GB DDR4 RAM for the MT7988. If this mode is not enabled, bl2 can only recognize half the size of RAM. Signed-off-by: Chukun Pan <[email protected]> Link: openwrt/openwrt#21000 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 3b14ace commit f037a2e

File tree

1 file changed

+20
-0
lines changed
  • package/boot/arm-trusted-firmware-mediatek

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ define Trusted-Firmware-A/Default
3030
BOOT_DEVICE:=
3131
DDR3_FLYBY:=
3232
DDR3_FREQ_1866:=
33+
DDR4_4BG_MODE:=
3334
DDR_TYPE:=
3435
NAND_TYPE:=
3536
BOARD_QFN:=
@@ -410,6 +411,14 @@ define Trusted-Firmware-A/mt7987-emmc-comb
410411
DRAM_USE_COMB:=1
411412
endef
412413

414+
define Trusted-Firmware-A/mt7987-emmc-ddr4-4bg
415+
NAME:=MediaTek MT7987 (eMMC, DDR4 4GB)
416+
BOOT_DEVICE:=emmc
417+
BUILD_SUBTARGET:=filogic
418+
PLAT:=mt7987
419+
DDR4_4BG_MODE:=1
420+
endef
421+
413422
define Trusted-Firmware-A/mt7987-nor-comb
414423
NAME:=MediaTek MT7987 (NOR)
415424
BOOT_DEVICE:=nor
@@ -426,6 +435,14 @@ define Trusted-Firmware-A/mt7987-sdmmc-comb
426435
DRAM_USE_COMB:=1
427436
endef
428437

438+
define Trusted-Firmware-A/mt7987-sdmmc-ddr4-4bg
439+
NAME:=MediaTek MT7987 (SD card, DDR4 4GB)
440+
BOOT_DEVICE:=sdmmc
441+
BUILD_SUBTARGET:=filogic
442+
PLAT:=mt7987
443+
DDR4_4BG_MODE:=1
444+
endef
445+
429446
define Trusted-Firmware-A/mt7987-spim-nand0-ubi-comb
430447
NAME:=MediaTek MT7987 (SPI-NAND via SPIM, UBI)
431448
BOOT_DEVICE:=spim-nand
@@ -670,8 +687,10 @@ TFA_TARGETS:= \
670687
mt7986-spim-nand-ubi-ddr4 \
671688
mt7986-spim-nand-4k-ddr4 \
672689
mt7987-emmc-comb \
690+
mt7987-emmc-ddr4-4bg \
673691
mt7987-nor-comb \
674692
mt7987-sdmmc-comb \
693+
mt7987-sdmmc-ddr4-4bg \
675694
mt7987-spim-nand0-ubi-comb \
676695
mt7987-spim-nand2-ubi-comb \
677696
mt7987-ram-comb \
@@ -705,6 +724,7 @@ TFA_MAKE_FLAGS += \
705724
HAVE_DRAM_OBJ_FILE=yes \
706725
$(if $(DDR3_FLYBY),DDR3_FLYBY=1) \
707726
$(if $(DDR3_FREQ_1866),DDR3_FREQ_1866=1) \
727+
$(if $(DDR4_4BG_MODE),DDR4_4BG_MODE=1) \
708728
$(if $(DRAM_USE_COMB),DRAM_USE_COMB=1) \
709729
$(if $(RAM_BOOT_UART_DL),RAM_BOOT_UART_DL=1) \
710730
$(if $(USE_UBI),UBI=1 $(if $(findstring mt7622,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x80000)) \

0 commit comments

Comments
 (0)