Skip to contentSkip to conversation

board: sama7g5ek: set blue led on at boot time

PATCH In review Eugen Hristev 1 participant 2 messages Dec 20, 2021 – Jan 13, 2022 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: sama7g5ek: set blue led on at boot time

From: Mihai Sain <[email protected]>

Set blue led on at boot time in order to highlight that u-boot is loaded.

---
 board/atmel/sama7g5ek/sama7g5ek.c | 9 +++++++++
 1 file changed, 9 insertions(+)
board/atmel/sama7g5ek/sama7g5ek.c +9 -0
index 4df43d81f8..5444799dfb 100644
@@ -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;
 }
 
Signature · 1 line
2.25.1