Message ID | 20211123190847.14943-1-a.kartashev@yadro.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
Series | board: ast2500/ast2600: initialize LEDs | expand |
On Tue, Nov 23, 2021 at 10:08:47PM +0300, Andrei Kartashev wrote: > Add option to initialize LEDs in board_init stage for aspeed-based > boards. > > Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> > --- > 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.
diff --git a/board/aspeed/evb_ast2500/evb_ast2500.c b/board/aspeed/evb_ast2500/evb_ast2500.c index ed162c4095..9612513bfc 100644 --- a/board/aspeed/evb_ast2500/evb_ast2500.c +++ b/board/aspeed/evb_ast2500/evb_ast2500.c @@ -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; +} diff --git a/board/aspeed/evb_ast2600/evb_ast2600.c b/board/aspeed/evb_ast2600/evb_ast2600.c index e6dc8c7952..9041798896 100644 --- a/board/aspeed/evb_ast2600/evb_ast2600.c +++ b/board/aspeed/evb_ast2600/evb_ast2600.c @@ -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; +}
Add option to initialize LEDs in board_init stage for aspeed-based boards. Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> --- board/aspeed/evb_ast2500/evb_ast2500.c | 8 ++++++++ board/aspeed/evb_ast2600/evb_ast2600.c | 8 ++++++++ 2 files changed, 16 insertions(+)