[U-Boot] [PATCH 4/4] stm32mp1: use new function led default state
Patrick Delaunay
patrick.delaunay at st.com
Fri Jul 13 15:21:11 UTC 2018
Initialize the led with the default state defined in device tree.
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---
board/st/stm32mp1/stm32mp1.c | 4 ++++
1 file changed, 4 insertions(+)
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;
}
--
2.7.4
More information about the U-Boot
mailing list