Skip to contentSkip to conversation

board: ast2500/ast2600: initialize LEDs

PATCH In review Andrei Kartashev 2 participants 2 messages Nov 23, 2021 – Jan 5, 2022 Arm/Aspeed machine support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: ast2500/ast2600: initialize LEDs

Add option to initialize LEDs in board_init stage for aspeed-based boards.

---
 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
index ed162c4095..9612513bfc 100644
@@ -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
index e6dc8c7952..9041798896 100644
@@ -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
#1 lore raw
Quoted 8 lines · Andrei Kartashev

Add option to initialize LEDs in board_init stage for aspeed-based boards.

---
 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