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 <yann.gautier@foss.st.com>
Change-Id: I98bd97a0ac8b0408a50376801e2a1961b241a3d6
This commit is contained in:
Yann Gautier 2022-07-05 13:29:13 +02:00 committed by Yann Gautier
parent 10f6dc7893
commit de1ab9fe05

View file

@ -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)