[U-Boot] [PATCH 7/8] board: stm32f469-discovery: Add set_env_soc_name() in board_late_init()

patrice.chotard at st.com patrice.chotard at st.com
Wed Jan 31 16:09:06 UTC 2018


From: Patrice Chotard <patrice.chotard at 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 at st.com>
Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---
 board/st/stm32f469-discovery/stm32f469-discovery.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c
index 36f7b2e8e176..c2ef76ba9ac3 100644
--- a/board/st/stm32f469-discovery/stm32f469-discovery.c
+++ b/board/st/stm32f469-discovery/stm32f469-discovery.c
@@ -54,6 +54,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)
 {
-- 
1.9.1



More information about the U-Boot mailing list