diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2018-07-27 16:37:08 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-08-10 10:27:32 -0400 |
commit | 1f5118b4d38d9caaab4c451f974542297bd1e2a7 (patch) | |
tree | b0ee54c7ef90197a1d24e432d2d7c0e96fb3a3dc /board/st | |
parent | d7a435a2ce3591b7d0b408d8710586415d797e58 (diff) | |
download | u-boot-1f5118b4d38d9caaab4c451f974542297bd1e2a7.tar.gz u-boot-1f5118b4d38d9caaab4c451f974542297bd1e2a7.tar.bz2 u-boot-1f5118b4d38d9caaab4c451f974542297bd1e2a7.zip |
stm32mp1: use new function led default state
Initialize the led with the default state defined in device tree.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'board/st')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <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; } |