From: patrice.chotard at st.com Date: Wed, 31 Jan 2018 17:09:05 +0100 Subject: [U-Boot] [PATCH 6/8] board: stm32f469-discovery: 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-7-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/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