]> Git Repo - J-u-boot.git/commitdiff
stm32mp1: use new function led default state
authorPatrick Delaunay <[email protected]>
Fri, 27 Jul 2018 14:37:08 +0000 (16:37 +0200)
committerTom Rini <[email protected]>
Fri, 10 Aug 2018 14:27:32 +0000 (10:27 -0400)
Initialize the led with the default state defined in device tree.

Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Patrick Delaunay <[email protected]>
board/st/stm32mp1/stm32mp1.c

index cc39fa6df9c37fa29aea9b9e0a57d5e47c94aa35..bfc8ab64d3771e6ffa42c4ece97a76e2d5276699 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include <config.h>
 #include <common.h>
+#include <led.h>
 #include <asm/arch/stm32.h>
 
 /*
@@ -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;
 }
This page took 0.036507 seconds and 4 git commands to generate.