From: Patrick Delaunay Date: Fri, 27 Jul 2018 16:37:08 +0200 Subject: [U-Boot] [PATCH v4 4/5] stm32mp1: use new function led default state In-Reply-To: <1532702229-26156-1-git-send-email-patrick.delaunay@st.com> References: <1532702229-26156-1-git-send-email-patrick.delaunay@st.com> Message-ID: <1532702229-26156-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. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Changes in v4: None Changes in v3: - minor update after Simon review - include led.h to avoid compilation warning on stm32mp1 board 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..bfc8ab6 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -4,6 +4,7 @@ */ #include #include +#include #include /* @@ -22,5 +23,8 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100; + if (IS_ENABLED(CONFIG_LED)) + led_default_state(); + return 0; } -- 2.7.4