summaryrefslogtreecommitdiff
path: root/board/atmel
diff options
context:
space:
mode:
authorMihai Sain <mihai.sain@microchip.com>2021-12-20 10:12:39 +0200
committerEugen Hristev <eugen.hristev@microchip.com>2022-01-13 11:45:00 +0200
commit93ddc09da26c04270e5829a8efbc299ccaa3d455 (patch)
tree1c749ded5e580c365ff887b1b008bfc242359b52 /board/atmel
parent009b108d808c1fc1da7f14e7d7190856e942bb17 (diff)
downloadu-boot-93ddc09da26c04270e5829a8efbc299ccaa3d455.tar.gz
u-boot-93ddc09da26c04270e5829a8efbc299ccaa3d455.tar.bz2
u-boot-93ddc09da26c04270e5829a8efbc299ccaa3d455.zip
board: sama7g5ek: set blue led on at boot time
Set blue led on at boot time in order to highlight that u-boot is loaded. Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Diffstat (limited to 'board/atmel')
-rw-r--r--board/atmel/sama7g5ek/sama7g5ek.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/atmel/sama7g5ek/sama7g5ek.c b/board/atmel/sama7g5ek/sama7g5ek.c
index 411b31160b..ae18ed05e0 100644
--- a/board/atmel/sama7g5ek/sama7g5ek.c
+++ b/board/atmel/sama7g5ek/sama7g5ek.c
@@ -17,6 +17,13 @@
DECLARE_GLOBAL_DATA_PTR;
+static void board_leds_init(void)
+{
+ atmel_pio4_set_pio_output(AT91_PIO_PORTB, 8, 0); /* LED RED */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTA, 13, 0); /* LED GREEN */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTD, 20, 1); /* LED BLUE */
+}
+
int board_late_init(void)
{
return 0;
@@ -65,6 +72,8 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+ board_leds_init();
+
return 0;
}