aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMoses Christopher2020-03-25 06:45:45 +0000
committerLokesh Vutla2020-04-14 15:44:48 +0530
commitf2330691d9c1fd75b135a909d4bf5d17576e897b (patch)
treeb838cb09018b613cc7cfc2f2858f28fd2d58a064 /board
parentb1c95cc7044e9afbf23e91720a81aa7deacd4a51 (diff)
am335x, guardian: boot stage feedback in headless mode
This patch enables the guardian board to provide feedback about the boot stage in headless mode. The on-board led would behave in the following pattern * U-boot -> GLOW LED * Linux -> BLINK LED [HEART-BEAT PATTERN] Signed-off-by: Moses Christopher <BollavarapuMoses.Christopher@in.bosch.com>
Diffstat (limited to 'board')
-rw-r--r--board/bosch/guardian/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c
index 32ebaf42317..03ba9e8c5ec 100644
--- a/board/bosch/guardian/board.c
+++ b/board/bosch/guardian/board.c
@@ -14,6 +14,7 @@
#include <env_internal.h>
#include <errno.h>
#include <i2c.h>
+#include <led.h>
#include <miiphy.h>
#include <panel.h>
#include <power/tps65217.h>
@@ -232,6 +233,9 @@ err:
int board_late_init(void)
{
+#ifdef CONFIG_LED_GPIO
+ led_default_state();
+#endif
set_bootmode_env();
return 0;
}