Skip to content

Commit 4b53fef

Browse files
patrickdelaunayPatrice Chotard
authored andcommitted
stm32mp: Cleanup DEBUG UART configuration
For early debug uart is assumed already initialized by OP-TEE and CONFIG_DEBUG_UART_BOARD_INIT and DEBUG_UART_CLOCK are not used in stm32 serial driver except in SPL for STM32MP15 family. This patch cleanups the Kconfig for other SoC, so activate CONFIG_DEBUG_UART is enough to activate the U-Boot early trace. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Ia45214cd1de6af9cc9e01119b85668621b6b8dce Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/433035 Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
1 parent f54962f commit 4b53fef

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

arch/arm/mach-stm32mp/Kconfig.21x

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ config BOOTSTAGE_STASH_ADDR
2929

3030
if DEBUG_UART
3131

32-
config DEBUG_UART_BOARD_INIT
33-
default y
34-
3532
# debug on USART2 by default
3633
config DEBUG_UART_BASE
3734
default 0x400e0000
3835

36+
config DEBUG_UART_CLOCK
37+
default 0
3938
endif
4039

4140
source "board/st/stm32mp2/Kconfig"

arch/arm/mach-stm32mp/Kconfig.23x

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ config BOOTSTAGE_STASH_ADDR
2929

3030
if DEBUG_UART
3131

32-
config DEBUG_UART_BOARD_INIT
33-
default y
34-
3532
# debug on USART2 by default
3633
config DEBUG_UART_BASE
3734
default 0x400e0000
3835

36+
config DEBUG_UART_CLOCK
37+
default 0
3938
endif
4039

4140
source "board/st/stm32mp2/Kconfig"

arch/arm/mach-stm32mp/Kconfig.25x

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ config BOOTSTAGE_STASH_ADDR
2929

3030
if DEBUG_UART
3131

32-
config DEBUG_UART_BOARD_INIT
33-
default y
34-
3532
# debug on USART2 by default
3633
config DEBUG_UART_BASE
3734
default 0x400e0000
3835

36+
config DEBUG_UART_CLOCK
37+
default 0
3938
endif
4039

4140
source "board/st/stm32mp2/Kconfig"

0 commit comments

Comments
 (0)