atf-202206: atf-202310: fix MT7981 available DDR4 size and adjust DDR_SIZE choices in Config.in
This commit is contained 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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user