Add get_cpu_id for STM32 SoCs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 8 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 8 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/8] Add get_cpu_id for STM32 SoCs
Hi Patrice,
Quoted 21 lines · Patrice CHOTARD
+Christophe Priouzeau who is the requester/developper of this feature
Quoted 5 lines · Vikas Manocha
Hi Patrice,
Quoted 2 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
Quoted 7 lines
Quoted 5 lines
This series allows to get the cpu id of STM32 SoCs and to set the environment variable "
soc_name" with the corresponding SoC name.This will be useful in some development environment to retrieve files correspondig to SoC family.
can you provide some example ? We have the device tree compatible string to distinguish board & soc.
We will add STM32 SoCs support in buildroot environment Our objective is to propose a flexible solution to boot linux kernel from sdcard.
Quoted 6 lines
As for STM32F4, STM32F7 and STM32H7 linux defconfig is slightly different (specific
CONFIG_DRAM_BASEandCONFIG_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_nameenvironment variable to select the correct zImage.
soc name is already part of configuration (SYS_SOC). It would be simpler and less expensive (for both cpu & memory) to use it.
In this patchset, 56 Bytes(currently, which will increase with more SOCs support) of lookup table are becoming part of text apart from the additional code.
Cheers,
Vikas
Quoted 41 lines
Patrice
Quoted 37 lines
Cheers,
VikasQuoted 33 lines
Patrice Chotard (8):
mach-stm32: Addget_cpu_idsupport
mach-stm32: MoveBOARD_LATE_INITflag to mach-stm32Kconfig
board: stm32f429-discovery: Addset_env_soc_name()in
board_late_init()
board: stm32h743-evaluation: Addset_env_soc_name()in
board_late_init()
board: stm32f743-discovery: Addset_env_soc_name()in
board_late_init()
board: stm32f469-discovery: Addset_env_soc_name()in
board_late_init()
board: stm32f469-discovery: Addset_env_soc_name()in
board_late_init()
board: stm32f429-evaluation: Addset_env_soc_name()in
board_late_init()arch/arm/include/asm/arch-stm32f4/stm32.h | 2 + arch/arm/include/asm/arch-stm32f7/stm32.h | 2 + arch/arm/include/asm/arch-stm32h7/stm32.h | 4 ++ arch/arm/mach-stm32/Kconfig | 3 ++ arch/arm/mach-stm32/soc.c | 46 ++++++++++++++++++++++ board/st/stm32f429-discovery/stm32f429-discovery.c | 7 ++++ .../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, 88 insertions(+), 3 deletions(-)