From 1f5118b4d38d9caaab4c451f974542297bd1e2a7 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Fri, 27 Jul 2018 16:37:08 +0200 Subject: [PATCH] stm32mp1: use new function led default state Initialize the led with the default state defined in device tree. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- 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 cc39fa6df9..bfc8ab64d3 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.39.5