]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(stm32mp13): change BL33 memory mapping
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 13 Apr 2021 12:44:48 +0000 (14:44 +0200)
committerYann Gautier <yann.gautier@st.com>
Tue, 5 Jul 2022 15:03:19 +0000 (17:03 +0200)
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 <patrick.delaunay@foss.st.com>
Change-Id: I8d0a93f4db411cf59838e635a315c729cccee269

plat/st/stm32mp1/stm32mp1_def.h

index 7e0745a8edf690b02c2f3092af553e421b69baa2..bd2532112d162c9be206909588b732afe9414699 100644 (file)
@@ -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 */