summaryrefslogtreecommitdiff
path: root/plat/st
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@foss.st.com>2022-07-05 13:29:13 +0200
committerYann Gautier <yann.gautier@st.com>2022-07-05 17:03:24 +0200
commitde1ab9fe052deba06a0904b10a6e0312ca49658e (patch)
tree1bec4f28016acef66fca74f1e44c24ee8e1601fc /plat/st
parent10f6dc789350ed5915a474b2d411890261b741ae (diff)
downloadarm-trusted-firmware-de1ab9fe052deba06a0904b10a6e0312ca49658e.tar.gz
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
Diffstat (limited to 'plat/st')
-rw-r--r--plat/st/stm32mp1/stm32mp1_def.h6
1 files changed, 6 insertions, 0 deletions
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)