board: ast2500/ast2600: initialize LEDs
PATCH 1/1 board: ast2500/ast2600: initialize LEDs
Add option to initialize LEDs in board_init stage for aspeed-based boards.
Signed-off-by Andrei Kartashev <[email protected]>
--- board/aspeed/evb_ast2500/evb_ast2500.c | 8 ++++++++ board/aspeed/evb_ast2600/evb_ast2600.c | 8 ++++++++ 2 files changed, 16 insertions(+)
board/aspeed/evb_ast2500/evb_ast2500.c +8 -0
@@ -3,3 +3,11 @@* Copyright (c) 2016 Google, Inc */ #include <common.h> + +int board_init (void ) +{ +if (IS_ENABLED (CONFIG_LED )) +led_default_state (); + +return 0 ; +}
board/aspeed/evb_ast2600/evb_ast2600.c +8 -0
@@ -3,3 +3,11 @@* Copyright (c) Aspeed Technology Inc. */ #include <common.h> + +int board_init (void ) +{ +if (IS_ENABLED (CONFIG_LED )) +led_default_state (); + +return 0 ; +}
Signature · 1 line
2.32.0
Quoted 8 lines · Andrei Kartashev
Add option to initialize LEDs in
board_initstage for aspeed-based boards.Signed-off-by Andrei Kartashev <[email protected]>--- board/aspeed/evb_ast2500/evb_ast2500.c | 8 ++++++++ board/aspeed/evb_ast2600/evb_ast2600.c | 8 ++++++++ 2 files changed, 16 insertions(+)
This does not currently build on current next, please rebase, thanks.
Signature · 1 line
Tom