* [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf
@ 2022-04-15 12:31 Patrick Delaunay
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Patrick Delaunay @ 2022-04-15 12:31 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Patrice Chotard, U-Boot STM32
Set the environment variable "console", used in extlinux.conf file when it
is generated by YOCTO distribution with:
UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}"
With these 2 variables, U-Boot give dynamically the used console and
baudrate in the Linux kernel bootargs.
For the STMicroelectronics boards, the used console is ttySTM0.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
---
include/configs/stm32mp15_st_common.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h
index 10248bffc1..e8dad004c6 100644
--- a/include/configs/stm32mp15_st_common.h
+++ b/include/configs/stm32mp15_st_common.h
@@ -8,6 +8,9 @@
#ifndef __CONFIG_STM32MP15_ST_COMMON_H__
#define __CONFIG_STM32MP15_ST_COMMON_H__
+#define STM32MP_BOARD_EXTRA_ENV \
+ "console=ttySTM0\0"
+
#include <configs/stm32mp15_common.h>
#ifdef CONFIG_EXTRA_ENV_SETTINGS
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link
2022-04-15 12:31 [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrick Delaunay
@ 2022-04-15 12:31 ` Patrick Delaunay
2022-04-22 7:45 ` Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
2022-04-22 7:44 ` [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
2 siblings, 2 replies; 6+ messages in thread
From: Patrick Delaunay @ 2022-04-15 12:31 UTC (permalink / raw)
To: u-boot; +Cc: Patrick Delaunay, Alexandru Gagniuc, Patrice Chotard, U-Boot STM32
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@gmail.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@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:
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf
2022-04-15 12:31 [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrick Delaunay
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
@ 2022-04-22 7:44 ` Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
2 siblings, 0 replies; 6+ messages in thread
From: Patrice CHOTARD @ 2022-04-22 7:44 UTC (permalink / raw)
To: Patrick Delaunay, u-boot; +Cc: U-Boot STM32
Hi Patrick
On 4/15/22 14:31, Patrick Delaunay wrote:
> Set the environment variable "console", used in extlinux.conf file when it
> is generated by YOCTO distribution with:
>
> UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}"
>
> With these 2 variables, U-Boot give dynamically the used console and
> baudrate in the Linux kernel bootargs.
>
> For the STMicroelectronics boards, the used console is ttySTM0.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> include/configs/stm32mp15_st_common.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h
> index 10248bffc1..e8dad004c6 100644
> --- a/include/configs/stm32mp15_st_common.h
> +++ b/include/configs/stm32mp15_st_common.h
> @@ -8,6 +8,9 @@
> #ifndef __CONFIG_STM32MP15_ST_COMMON_H__
> #define __CONFIG_STM32MP15_ST_COMMON_H__
>
> +#define STM32MP_BOARD_EXTRA_ENV \
> + "console=ttySTM0\0"
> +
> #include <configs/stm32mp15_common.h>
>
> #ifdef CONFIG_EXTRA_ENV_SETTINGS
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
@ 2022-04-22 7:45 ` Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
1 sibling, 0 replies; 6+ messages in thread
From: Patrice CHOTARD @ 2022-04-22 7:45 UTC (permalink / raw)
To: Patrick Delaunay, u-boot; +Cc: Alexandru Gagniuc, U-Boot STM32
Hi Patrick
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@gmail.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@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:
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Thanks
Patrice
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf
2022-04-15 12:31 [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrick Delaunay
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
2022-04-22 7:44 ` [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrice CHOTARD
@ 2022-05-10 7:36 ` Patrice CHOTARD
2 siblings, 0 replies; 6+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 7:36 UTC (permalink / raw)
To: Patrick Delaunay, u-boot; +Cc: U-Boot STM32
On 4/15/22 14:31, Patrick Delaunay wrote:
> Set the environment variable "console", used in extlinux.conf file when it
> is generated by YOCTO distribution with:
>
> UBOOT_EXTLINUX_CONSOLE ??= "console=${console},${baudrate}"
>
> With these 2 variables, U-Boot give dynamically the used console and
> baudrate in the Linux kernel bootargs.
>
> For the STMicroelectronics boards, the used console is ttySTM0.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
> ---
>
> include/configs/stm32mp15_st_common.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h
> index 10248bffc1..e8dad004c6 100644
> --- a/include/configs/stm32mp15_st_common.h
> +++ b/include/configs/stm32mp15_st_common.h
> @@ -8,6 +8,9 @@
> #ifndef __CONFIG_STM32MP15_ST_COMMON_H__
> #define __CONFIG_STM32MP15_ST_COMMON_H__
>
> +#define STM32MP_BOARD_EXTRA_ENV \
> + "console=ttySTM0\0"
> +
> #include <configs/stm32mp15_common.h>
>
> #ifdef CONFIG_EXTRA_ENV_SETTINGS
Applied to u-boot-stm32
Thanks
Patrice
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
2022-04-22 7:45 ` Patrice CHOTARD
@ 2022-05-10 7:36 ` Patrice CHOTARD
1 sibling, 0 replies; 6+ messages in thread
From: Patrice CHOTARD @ 2022-05-10 7:36 UTC (permalink / raw)
To: Patrick Delaunay, u-boot; +Cc: Alexandru Gagniuc, U-Boot STM32
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@gmail.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-10 7:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15 12:31 [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrick Delaunay
2022-04-15 12:31 ` [PATCH 2/2] configs: stm32mp1: Add support for baudrates higher than 115200 for st-link Patrick Delaunay
2022-04-22 7:45 ` Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
2022-04-22 7:44 ` [PATCH 1/2] configs: stm32mp1: set the console variable for extlinux.conf Patrice CHOTARD
2022-05-10 7:36 ` Patrice CHOTARD
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.