diff --git a/plat/arm/board/arm_fpga/fpga_bl31_setup.c b/plat/arm/board/arm_fpga/fpga_bl31_setup.c index 81d040cba..2b5ca4af7 100644 --- a/plat/arm/board/arm_fpga/fpga_bl31_setup.c +++ b/plat/arm/board/arm_fpga/fpga_bl31_setup.c @@ -144,6 +144,12 @@ static void fpga_prepare_dtb(void) panic(); } + /* Reserve memory used by Trusted Firmware. */ + if (fdt_add_reserved_memory(fdt, "tf-a@80000000", BL31_BASE, + BL31_LIMIT - BL31_BASE)) { + WARN("Failed to add reserved memory node to DT\n"); + } + /* Check for the command line signature. */ if (!strncmp(cmdline, "CMD:", 4)) { int chosen; diff --git a/plat/arm/board/arm_fpga/include/platform_def.h b/plat/arm/board/arm_fpga/include/platform_def.h index 411b936da..2350d8767 100644 --- a/plat/arm/board/arm_fpga/include/platform_def.h +++ b/plat/arm/board/arm_fpga/include/platform_def.h @@ -30,7 +30,7 @@ #if !ENABLE_PIE #define BL31_BASE UL(0x80000000) -#define BL31_LIMIT UL(0x80100000) +#define BL31_LIMIT UL(0x80070000) #else #define BL31_BASE UL(0x0) #define BL31_LIMIT UL(0x01000000)