diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2018-05-17 14:50:46 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-26 18:19:18 -0400 |
commit | 320d2663688ab8ae6932a1711365e759ea1774be (patch) | |
tree | cb1b21ce898836e6a2c1c7cfa624923ce1c96096 /arch/arm/mach-stm32mp/Kconfig | |
parent | bc709a41caadc3323f912633b646cc8314c6cd01 (diff) | |
download | u-boot-320d2663688ab8ae6932a1711365e759ea1774be.tar.gz |
stm32mp1: Allow to activate CONFIG_DEBUG_UART
Add the needed information to enable the debug uart
to have printf before the serial driver probe
(so before probe for clock, pincontrol and reset drivers)
To enable the debug on uart 4 (default console):
+ CONFIG_DEBUG_UART=y
+ CONFIG_DEBUG_UART_STM32=y
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/Kconfig')
-rw-r--r-- | arch/arm/mach-stm32mp/Kconfig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig index ccbeb5c388..abceeded24 100644 --- a/arch/arm/mach-stm32mp/Kconfig +++ b/arch/arm/mach-stm32mp/Kconfig @@ -54,4 +54,19 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2 source "board/st/stm32mp1/Kconfig" +# currently activated for debug / should be deactivated for real product +if DEBUG_UART + +config DEBUG_UART_BOARD_INIT + default y + +# debug on UART4 by default +config DEBUG_UART_BASE + default 0x40010000 + +# clock source is HSI on reset +config DEBUG_UART_CLOCK + default 64000000 +endif + endif |