
From: Patrice Chotard patrice.chotard@st.com
Add set_env_soc_name() call in board_late_init() to set environment variable "soc_name" with the name of current STM32 SoC.
Signed-off-by: Christophe Priouzeau christophe.priouzeau@st.com Signed-off-by: Patrice Chotard patrice.chotard@st.com --- board/st/stm32f429-discovery/stm32f429-discovery.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c index 3d90218faa61..b0d884cb95fa 100644 --- a/board/st/stm32f429-discovery/stm32f429-discovery.c +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c @@ -60,6 +60,13 @@ int board_init(void) return 0; }
+int board_late_init(void) +{ + set_env_soc_name(get_cpu_id()); + + return 0; +} + #ifdef CONFIG_MISC_INIT_R int misc_init_r(void) {