From 10f6dc789350ed5915a474b2d411890261b741ae Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Tue, 13 Apr 2021 14:44:48 +0200 Subject: [PATCH] feat(stm32mp13): change BL33 memory mapping U-Boot is loaded at the beginning of the DDR: STM32MP_DDR_BASE = 0xC0000000. This patch remove the need to use the 0x100000 offset, reserved on STM32MP15 for flashlayout. Signed-off-by: Patrick Delaunay Change-Id: I8d0a93f4db411cf59838e635a315c729cccee269 --- plat/st/stm32mp1/stm32mp1_def.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h index 7e0745a8e..bd2532112 100644 --- a/plat/st/stm32mp1/stm32mp1_def.h +++ b/plat/st/stm32mp1/stm32mp1_def.h @@ -182,7 +182,12 @@ enum ddr_type { #endif #endif +#if STM32MP13 +#define STM32MP_BL33_BASE STM32MP_DDR_BASE +#endif +#if STM32MP15 #define STM32MP_BL33_BASE (STM32MP_DDR_BASE + U(0x100000)) +#endif #define STM32MP_BL33_MAX_SIZE U(0x400000) /* Define maximum page size for NAND devices */ -- 2.39.5