[U-Boot] [PATCH 6/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:05 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/stm32f746-disco/stm32f746-disco.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
index 8da70281f976..0ad03ce96d33 100644
--- a/board/st/stm32f746-disco/stm32f746-disco.c
+++ b/board/st/stm32f746-disco/stm32f746-disco.c
@@ -115,6 +115,8 @@ int board_late_init(void)
 	struct gpio_desc gpio = {};
 	int node;
 
+	set_env_soc_name(get_cpu_id());
+
 	node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, "st,led1");
 	if (node < 0)
 		return -1;
-- 
1.9.1



More information about the U-Boot mailing list