From 32f2ca04bfd2d93329f2f17d9c9d134f339710f9 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Mon, 28 Feb 2022 11:02:35 +0100 Subject: [PATCH] fix(stm32mp1): update the FIP load address for serial boot Update the FIP load address and size for serial boot to support product with a DDR size = 128MB 1/ Move the FIP location at the end of the first 128MB 2/ Reduce the DWL_BUFFER_SIZE to 16MB, to be coherent with the value indicated in USB enumeration - for STM32MP13x: "@SSBL /0x03/1*16Me" - for STM32MP15x: "@Partition3 /0x03/1*16Me" Signed-off-by: Patrick Delaunay Change-Id: Id93bf00c64832c17426bfd78e060861275677ecc --- plat/st/stm32mp1/include/platform_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/st/stm32mp1/include/platform_def.h b/plat/st/stm32mp1/include/platform_def.h index 8ecb4c3e4..9c552264e 100644 --- a/plat/st/stm32mp1/include/platform_def.h +++ b/plat/st/stm32mp1/include/platform_def.h @@ -103,8 +103,8 @@ #define PLAT_STM32MP_NS_IMAGE_OFFSET BL33_BASE /* Needed by STM32CubeProgrammer support */ -#define DWL_BUFFER_BASE (STM32MP_DDR_BASE + U(0x08000000)) -#define DWL_BUFFER_SIZE U(0x08000000) +#define DWL_BUFFER_BASE (STM32MP_DDR_BASE + U(0x07000000)) +#define DWL_BUFFER_SIZE U(0x01000000) /* * SSBL offset in case it's stored in eMMC boot partition.