[U-Boot] [PATCH 4/8] board: stm32h743-evaluation: Add set_env_soc_name() in board_late_init()
patrice.chotard at st.com
patrice.chotard at st.com
Wed Jan 31 16:09:03 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/stm32h743-eval/stm32h743-eval.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c
index 226b7045d278..501cecf5387a 100644
--- a/board/st/stm32h743-eval/stm32h743-eval.c
+++ b/board/st/stm32h743-eval/stm32h743-eval.c
@@ -8,6 +8,8 @@
#include <common.h>
#include <dm.h>
+#include <asm/arch/stm32.h>
+
DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
@@ -46,6 +48,8 @@ u32 get_board_rev(void)
int board_late_init(void)
{
+ set_env_soc_name(get_cpu_id());
+
return 0;
}
--
1.9.1
More information about the U-Boot
mailing list