From de1ab9fe052deba06a0904b10a6e0312ca49658e Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Tue, 5 Jul 2022 13:29:13 +0200 Subject: [PATCH] fix(stm32mp13): correct USART addresses On STM32MP13, USART1 and USART2 addresses are 0x4C000000 and 0x4C001000. Whereas on STM32MP15, the addresses were 0x5C000000 and 0x4000E000. Use dedicated flags to choose the correct address, that could be use for early or crash console. Signed-off-by: Yann Gautier Change-Id: I98bd97a0ac8b0408a50376801e2a1961b241a3d6 --- plat/st/stm32mp1/stm32mp1_def.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h index bd2532112..8ca61239d 100644 --- a/plat/st/stm32mp1/stm32mp1_def.h +++ b/plat/st/stm32mp1/stm32mp1_def.h @@ -252,8 +252,14 @@ enum ddr_type { /******************************************************************************* * STM32MP1 UART ******************************************************************************/ +#if STM32MP13 +#define USART1_BASE U(0x4C000000) +#define USART2_BASE U(0x4C001000) +#endif +#if STM32MP15 #define USART1_BASE U(0x5C000000) #define USART2_BASE U(0x4000E000) +#endif #define USART3_BASE U(0x4000F000) #define UART4_BASE U(0x40010000) #define UART5_BASE U(0x40011000)