From: Patrick Delaunay Date: Fri, 27 Jul 2018 14:37:08 +0000 (+0200) Subject: stm32mp1: use new function led default state X-Git-Tag: v2018.09-rc2~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f5118b4d38d9caaab4c451f974542297bd1e2a7;p=oweals%2Fu-boot.git 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 --- 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; }