Skip to content

Commit 13f71fa

Browse files
Erwan Le Rayatorgue
authored andcommitted
ARM: debug: stm32: add UART early console configuration for STM32F7
Early console is hardcoded on USART1 in current implementation. With this patch, default UART instance is USART1, but other UART instances can be configured by setting physical and virtual base addresses in menuconfig. Signed-off-by: Erwan Le Ray <erwan.leray@st.com> Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
1 parent 79d5cfd commit 13f71fa

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,12 +1213,13 @@ choice
12131213

12141214
config STM32F7_DEBUG_UART
12151215
bool "Use STM32F7 UART for low-level debug"
1216-
depends on ARCH_STM32
1216+
depends on MACH_STM32F746 || MACH_STM32F769
12171217
select DEBUG_STM32_UART
12181218
help
12191219
Say Y here if you want kernel low-level debugging support
12201220
on STM32F7 based platforms, which default UART is wired on
1221-
USART1.
1221+
USART1, but another UART instance can be selected by modifying
1222+
CONFIG_DEBUG_UART_PHYS.
12221223

12231224
If unsure, say N.
12241225

@@ -1620,7 +1621,7 @@ config DEBUG_UART_PHYS
16201621
default 0x3e000000 if DEBUG_BCM_KONA_UART
16211622
default 0x3f201000 if DEBUG_BCM2836
16221623
default 0x4000e400 if DEBUG_LL_UART_EFM32
1623-
default 0x40011000 if STM32F4_DEBUG_UART
1624+
default 0x40011000 if STM32F4_DEBUG_UART || STM32F7_DEBUG_UART
16241625
default 0x40028000 if DEBUG_AT91_SAMV7_USART1
16251626
default 0x40081000 if DEBUG_LPC18XX_UART0
16261627
default 0x40090000 if DEBUG_LPC32XX

0 commit comments

Comments
 (0)