From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Delaunay Date: Mon, 23 Jul 2018 11:41:30 +0200 Subject: [U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state In-Reply-To: <1532338891-6848-1-git-send-email-patrick.delaunay@st.com> References: <1532338891-6848-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1532338891-6848-5-git-send-email-patrick.delaunay@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 Initialize the led with the default state defined in device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index cc39fa6..db8c805 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -22,5 +22,9 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100; +#ifdef CONFIG_LED + led_default_state(); +#endif /* CONFIG_LED */ + return 0; } -- 2.7.4