board: stm32h474i_disco: Small fixes on m4 core

ST-Link VPC is wired to UART_1.
Console should be assigned to this peripheral to be available.
By default UART_1 is assigned to m7 core and not available to m4.

This commit does not change this, but makes it easier to change
UART_1 assignment from m7 to m4 core.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-02-05 13:51:59 +01:00 committed by Johan Hedberg
commit 137d4c1882
4 changed files with 22 additions and 1 deletions

View file

@ -50,6 +50,7 @@ endif # STM32H7_DUAL_CORE
if UART_CONSOLE
# Change this to assign UART_1 (console) to M4 core
config UART_1
default y if BOARD_STM32H747I_DISCO_M7
@ -57,6 +58,7 @@ endif # UART_CONSOLE
if SERIAL
# Change this to assign UART_8 to M4 core
config UART_8
default y if BOARD_STM32H747I_DISCO_M7

View file

@ -41,3 +41,13 @@
sw0 = &joy_center;
};
};
&usart1 {
current-speed = <115200>;
/* status = "okay"; */
};
&uart8 {
current-speed = <115200>;
/* status = "okay"; */
};

View file

@ -14,3 +14,11 @@ CONFIG_GPIO=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
# By default SERIAL peripherals are assigned to m7
# enable uart driver
#CONFIG_SERIAL=y
# console
#CONFIG_CONSOLE=y
#CONFIG_UART_CONSOLE=y

View file

@ -30,9 +30,10 @@ CONFIG_CLOCK_STM32_PLL_P_DIVISOR=2
CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=4
CONFIG_CLOCK_STM32_PLL_R_DIVISOR=2
# Disable following to assign serial ports to m4 core
# enable uart driver
CONFIG_SERIAL=y
# console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y