atf-202206: atf-202310: fix MT7981 available DDR4 size and adjust DDR_SIZE choices in Config.in

This commit is contained in:
lgs2007m
2024-02-03 11:45:09 +08:00
parent 1869c74691
commit 3aef7874ea
4 changed files with 10 additions and 8 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -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