projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a435a
)
stm32mp1: use new function led default state
author
Patrick Delaunay
<patrick.delaunay@st.com>
Fri, 27 Jul 2018 14:37:08 +0000
(16:37 +0200)
committer
Tom Rini
<trini@konsulko.com>
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 <sjg@chromium.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
board/st/stm32mp1/stm32mp1.c
patch
|
blob
|
history
diff --git
a/board/st/stm32mp1/stm32mp1.c
b/board/st/stm32mp1/stm32mp1.c
index cc39fa6df9c37fa29aea9b9e0a57d5e47c94aa35..bfc8ab64d3771e6ffa42c4ece97a76e2d5276699 100644
(file)
--- 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;
}