All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: sama7g5ek: set blue led on at boot time
@ 2021-12-20  8:12 Eugen Hristev
  2022-01-13  9:49 ` Eugen.Hristev
  0 siblings, 1 reply; 2+ messages in thread
From: Eugen Hristev @ 2021-12-20  8:12 UTC (permalink / raw)
  To: u-boot; +Cc: eugen.hristev, Mihai Sain

From: Mihai Sain <mihai.sain@microchip.com>

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>
---
 board/atmel/sama7g5ek/sama7g5ek.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/board/atmel/sama7g5ek/sama7g5ek.c b/board/atmel/sama7g5ek/sama7g5ek.c
index 4df43d81f8..5444799dfb 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;
 }
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] board: sama7g5ek: set blue led on at boot time
  2021-12-20  8:12 [PATCH] board: sama7g5ek: set blue led on at boot time Eugen Hristev
@ 2022-01-13  9:49 ` Eugen.Hristev
  0 siblings, 0 replies; 2+ messages in thread
From: Eugen.Hristev @ 2022-01-13  9:49 UTC (permalink / raw)
  To: Mihai.Sain; +Cc: u-boot

On 12/20/21 10:12 AM, Eugen Hristev wrote:
> From: Mihai Sain <mihai.sain@microchip.com>
> 
> 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>
> ---

Applied to u-boot-at91/master, thanks !


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20  8:12 [PATCH] board: sama7g5ek: set blue led on at boot time Eugen Hristev
2022-01-13  9:49 ` Eugen.Hristev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.