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 */