
Hi
This series will be abandoned and replaced by a new patch using CONFIG_ENV_VARS_UBOOT_CONFIG flag.
Patrice
On 02/05/2018 11:33 AM, patrice.chotard@st.com wrote:
From: Patrice Chotard patrice.chotard@st.com
This series allows to create and set the environment variable "soc_name" corresponding to the current STM32 SoCs name.
We will add STM32 SoCs support in buildroot environment Our objective is to propose a flexible solution to boot linux kernel from sdcard.
As for STM32F4, STM32F7 and STM32H7 linux defconfig is slightly different (specific CONFIG_DRAM_BASE and CONFIG_DRAM_SIZE) we can't use the same zImage for all these SoCs.
To simplify, we will embed all dtb/zImage in the sdcard and using the soc_name environment variable to select the correct zImage.
v2: _ Remove get_cpu_id() function and use directly CONFIG_STM32xx flag to identify the STM32 SoC family.
Patrice Chotard (8): mach-stm32: Add get_cpu_id support mach-stm32: Move BOARD_LATE_INIT flag to mach-stm32 Kconfig board: stm32: Add set_env_soc_name() in board_late_init()
arch/arm/include/asm/arch-stm32f4/stm32.h | 1 + arch/arm/include/asm/arch-stm32f7/stm32.h | 1 + arch/arm/include/asm/arch-stm32h7/stm32.h | 3 +++ arch/arm/mach-stm32/Kconfig | 3 +++ arch/arm/mach-stm32/soc.c | 15 +++++++++++++++ board/st/stm32f429-discovery/stm32f429-discovery.c | 7 +++++++ board/st/stm32f429-evaluation/stm32f429-evaluation.c | 7 +++++++ board/st/stm32f469-discovery/stm32f469-discovery.c | 7 +++++++ board/st/stm32f746-disco/stm32f746-disco.c | 2 ++ board/st/stm32h743-disco/stm32h743-disco.c | 4 ++++ board/st/stm32h743-eval/stm32h743-eval.c | 4 ++++ include/configs/stm32f746-disco.h | 1 - include/configs/stm32h743-disco.h | 1 - include/configs/stm32h743-eval.h | 1 - 14 files changed, 54 insertions(+), 3 deletions(-)