diff --git a/atf-20220606-637ba581b/config.in b/atf-20220606-637ba581b/config.in index 7fa357aa7..1bb751fac 100644 --- a/atf-20220606-637ba581b/config.in +++ b/atf-20220606-637ba581b/config.in @@ -142,15 +142,16 @@ menu "DRAM" config DRAM_SIZE_512 bool "512MB" depends on (PLAT_MT7981 && DRAM_DDR3) || \ - (PLAT_MT7986 && DRAM_DDR3) + (PLAT_MT7986 && DRAM_DDR3) || \ + (PLAT_MT7981 && DRAM_DDR4) || \ + (PLAT_MT7986 && DRAM_DDR4) config DRAM_SIZE_1024 bool "1GB" depends on (PLAT_MT7981 && DRAM_DDR4) || \ (PLAT_MT7986 && DRAM_DDR4) config DRAM_SIZE_2048 bool "2GB" - depends on (PLAT_MT7981 && DRAM_DDR4) || \ - (PLAT_MT7986 && DRAM_DDR4) + depends on (PLAT_MT7986 && DRAM_DDR4) endchoice choice DDR3_FREQUENCY bool "DDR3 frequency" diff --git a/atf-20220606-637ba581b/plat/mediatek/mt7981/platform.mk b/atf-20220606-637ba581b/plat/mediatek/mt7981/platform.mk index fc7531ae1..57143dd54 100644 --- a/atf-20220606-637ba581b/plat/mediatek/mt7981/platform.mk +++ b/atf-20220606-637ba581b/plat/mediatek/mt7981/platform.mk @@ -67,7 +67,7 @@ else # Whether supports DDR4 ifeq ($(DRAM_USE_DDR4), 1) BL2_CPPFLAGS += -DDRAM_USE_DDR4 -AVAIL_DRAM_SIZE := 1024 2048 +AVAIL_DRAM_SIZE := 512 1024 else override DRAM_USE_DDR4 := 0 AVAIL_DRAM_SIZE := 256 512 diff --git a/atf-20231013-0ea67d76a/config.in b/atf-20231013-0ea67d76a/config.in index 7fa357aa7..1bb751fac 100644 --- a/atf-20231013-0ea67d76a/config.in +++ b/atf-20231013-0ea67d76a/config.in @@ -142,15 +142,16 @@ menu "DRAM" config DRAM_SIZE_512 bool "512MB" depends on (PLAT_MT7981 && DRAM_DDR3) || \ - (PLAT_MT7986 && DRAM_DDR3) + (PLAT_MT7986 && DRAM_DDR3) || \ + (PLAT_MT7981 && DRAM_DDR4) || \ + (PLAT_MT7986 && DRAM_DDR4) config DRAM_SIZE_1024 bool "1GB" depends on (PLAT_MT7981 && DRAM_DDR4) || \ (PLAT_MT7986 && DRAM_DDR4) config DRAM_SIZE_2048 bool "2GB" - depends on (PLAT_MT7981 && DRAM_DDR4) || \ - (PLAT_MT7986 && DRAM_DDR4) + depends on (PLAT_MT7986 && DRAM_DDR4) endchoice choice DDR3_FREQUENCY bool "DDR3 frequency" diff --git a/atf-20231013-0ea67d76a/plat/mediatek/mt7981/drivers/dram/dram-configs.mk b/atf-20231013-0ea67d76a/plat/mediatek/mt7981/drivers/dram/dram-configs.mk index 9c54209f3..a82d0346e 100644 --- a/atf-20231013-0ea67d76a/plat/mediatek/mt7981/drivers/dram/dram-configs.mk +++ b/atf-20231013-0ea67d76a/plat/mediatek/mt7981/drivers/dram/dram-configs.mk @@ -7,7 +7,7 @@ # Whether supports DDR4 ifeq ($(DRAM_USE_DDR4), 1) BL2_CPPFLAGS += -DDRAM_USE_DDR4 -AVAIL_DRAM_SIZE := 1024 2048 +AVAIL_DRAM_SIZE := 512 1024 else override DRAM_USE_DDR4 := 0 AVAIL_DRAM_SIZE := 256 512