Skip to content

Commit fa452b0

Browse files
Josua-SRlizthegrey
authored andcommitted
lx2160a: support flexible value for CONFIG_DDR_NODIMM
Add support for values other than 0 and 1 for CONFIG_DDR_NODIMM. This macro can be used for both enabling, and selecting a specific memory configuration at compile-time. Signed-off-by: Josua Mayer <josua@solid-run.com>
1 parent a0a1e36 commit fa452b0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plat/nxp/common/plat_make_helper/plat_common_def.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ ifneq (${NUM_OF_DDRC},)
3939
$(eval $(call add_define_val,NUM_OF_DDRC,${NUM_OF_DDRC}))
4040
endif
4141

42-
ifeq (${CONFIG_DDR_NODIMM},1)
43-
$(eval $(call add_define,CONFIG_DDR_NODIMM))
42+
CONFIG_DDR_NODIMM ?= 0
43+
ifneq (${CONFIG_DDR_NODIMM},0)
44+
$(eval $(call add_define_val,CONFIG_DDR_NODIMM,${CONFIG_DDR_NODIMM}))
4445
DDRC_NUM_DIMM := 1
4546
endif
4647

0 commit comments

Comments
 (0)