diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-04-15 14:31:54 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2022-05-10 10:56:39 +0200 |
commit | 806c4dd31532708d30dd82a5173232dccc73c81b (patch) | |
tree | 5514ff032037b12cf4305de303902b4ab3e5aa1c /include/configs/stm32mp15_st_common.h | |
parent | 1494e3758634a32a79484099ee9a86ff5e7d737a (diff) | |
download | u-boot-806c4dd31532708d30dd82a5173232dccc73c81b.tar.gz |
configs: stm32mp1: set the console variable for extlinux.conf
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>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'include/configs/stm32mp15_st_common.h')
-rw-r--r-- | include/configs/stm32mp15_st_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h index 10248bffc14..e8dad004c61 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 |