diff mbox series

[U-Boot,4/4] stm32mp1: use new function led default state

Message ID 1531495271-19774-5-git-send-email-patrick.delaunay@st.com
State Changes Requested
Delegated to: Tom Rini
Headers show
Series dm: led: remove auto probe in binding function | expand

Commit Message

Patrick DELAUNAY July 13, 2018, 3:21 p.m. UTC
Initialize the led with the default state defined in device tree.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 board/st/stm32mp1/stm32mp1.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Simon Glass July 16, 2018, 5:21 a.m. UTC | #1
On 13 July 2018 at 09:21, Patrick Delaunay <patrick.delaunay@st.com> wrote:
> Initialize the led with the default state defined in device tree.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  board/st/stm32mp1/stm32mp1.c | 4 ++++
>  1 file changed, 4 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini July 20, 2018, 10:36 p.m. UTC | #2
On Fri, Jul 13, 2018 at 05:21:11PM +0200, Patrick Delaunay wrote:

> Initialize the led with the default state defined in device tree.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index cc39fa6..db8c805 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -22,5 +22,9 @@  int board_init(void)
 	/* address of boot parameters */
 	gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
 
+#ifdef CONFIG_LED
+	led_default_state();
+#endif /* CONFIG_LED */
+
 	return 0;
 }