From e2818d0afc20a60d302f85f4c915e4ae4cc3cb9c Mon Sep 17 00:00:00 2001 From: Biwen Li Date: Mon, 11 Jan 2021 11:11:44 +0800 Subject: [PATCH] fix(layerscape): fix build issue of mmap_add_ddr_region_dynamically Fix build issue of mmap_add_ddr_region_dynamically(): ls_bl2_el3_setup.c:(.text.bl2_plat_preload_setup+0x28): undefined reference to mmap_add_ddr_region_dynamically Signed-off-by: Biwen Li Signed-off-by: Jiafei Pan Change-Id: I74a8b4c2337fc0646d6acb16ce61755c5efbdf38 --- plat/nxp/common/setup/ls_bl2_el3_setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plat/nxp/common/setup/ls_bl2_el3_setup.c b/plat/nxp/common/setup/ls_bl2_el3_setup.c index 5b5144d9b..14422e2a5 100644 --- a/plat/nxp/common/setup/ls_bl2_el3_setup.c +++ b/plat/nxp/common/setup/ls_bl2_el3_setup.c @@ -1,5 +1,5 @@ /* - * Copyright 2018-2020 NXP + * Copyright 2018-2022 NXP * * SPDX-License-Identifier: BSD-3-Clause * @@ -289,8 +289,9 @@ void bl2_plat_preload_setup(void) if ((dram_regions_info.region[0].addr == 0) && (dram_regions_info.total_dram_size > 0)) { populate_dram_regions_info(); - +#ifdef PLAT_XLAT_TABLES_DYNAMIC mmap_add_ddr_region_dynamically(); +#endif } /* setup the memory region access permissions */