提交 1f5118b4 编写于 作者: P Patrick Delaunay 提交者: Tom Rini

stm32mp1: use new function led default state

Initialize the led with the default state defined in device tree.
Reviewed-by: NSimon Glass <sjg@chromium.org>
Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
上级 d7a435a2
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册