[PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link

Patrice CHOTARD patrice.chotard at foss.st.com
Tue May 10 09:36:39 CEST 2022



On 4/15/22 14:31, Patrick Delaunay wrote:
> On STMicroelectronics boards, the UART can reliably go up to
> 2000000 bauds when connected to the on-board ST-LINK-V2 for STM32MP15
> 
> Unfortunately U-Boot will fall back to 115200 unless higher rates are
> declared via CONFIG_SYS_BAUDRATE_TABLE.
> 
> This patch add the support of higher baudrates on STMicroelectronics
> boards with ST-LINK.
> 
> Cc: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 
>  include/configs/stm32mp15_st_common.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h
> index e8dad004c6..3c0ffb8f56 100644
> --- a/include/configs/stm32mp15_st_common.h
> +++ b/include/configs/stm32mp15_st_common.h
> @@ -13,6 +13,11 @@
>  
>  #include <configs/stm32mp15_common.h>
>  
> +/* uart with on-board st-link */
> +#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, \
> +					 230400, 460800, 921600, \
> +					 1000000, 2000000 }
> +
>  #ifdef CONFIG_EXTRA_ENV_SETTINGS
>  /*
>   * default bootcmd for stm32mp1 STMicroelectronics boards:
Applied to u-boot-stm32

Thanks
Patrice


More information about the U-Boot mailing list