From: patrice.chotard at st.com Date: Wed, 31 Jan 2018 17:09:07 +0100 Subject: [U-Boot] [PATCH 8/8] board: stm32f429-evaluation: Add set_env_soc_name() in board_late_init() In-Reply-To: <1517414947-5016-1-git-send-email-patrice.chotard@st.com> References: <1517414947-5016-1-git-send-email-patrice.chotard@st.com> Message-ID: <1517414947-5016-9-git-send-email-patrice.chotard@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Patrice Chotard 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 Signed-off-by: Patrice Chotard --- board/st/stm32f429-evaluation/stm32f429-evaluation.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c index 25e020784d62..108b22a8dcba 100644 --- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c +++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.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