From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4] board: atmel: sama5d27_wlsom1_ek: start green led in SPL
Date: Mon, 26 Aug 2019 06:47:09 +0000 [thread overview]
Message-ID: <1566801667-16804-4-git-send-email-eugen.hristev@microchip.com> (raw)
In-Reply-To: <1566801667-16804-1-git-send-email-eugen.hristev@microchip.com>
From: Eugen Hristev <eugen.hristev@microchip.com>
When SPL boots, enable green led on the board.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
index 1930048..fda06c8 100644
--- a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
+++ b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c
@@ -82,6 +82,13 @@ int dram_init(void)
/* SPL */
#ifdef CONFIG_SPL_BUILD
+static void board_leds_init(void)
+{
+ atmel_pio4_set_pio_output(AT91_PIO_PORTA, 6, 0); /* RED */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTA, 7, 1); /* GREEN */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTA, 8, 0); /* BLUE */
+}
+
#ifdef CONFIG_SD_BOOT
void spl_mmc_init(void)
{
@@ -113,6 +120,7 @@ void spl_qspi_init(void)
void spl_board_init(void)
{
+ board_leds_init();
#ifdef CONFIG_SD_BOOT
spl_mmc_init();
#endif
--
2.7.4
next prev parent reply other threads:[~2019-08-26 6:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 6:47 [U-Boot] [PATCH 1/4] ARM: dts: at91: sama5d2: add seq for qspi1 Eugen.Hristev at microchip.com
2019-08-26 6:47 ` [U-Boot] [PATCH 2/4] ARM: dts: at91: sama5d27_wlsom1_ek: add support for qspi Eugen.Hristev at microchip.com
2019-08-26 6:47 ` [U-Boot] [PATCH 3/4] board: atmel: sama5d2_wlsom1_ek: add qspi support and qspi boot config Eugen.Hristev at microchip.com
2019-08-26 6:47 ` Eugen.Hristev at microchip.com [this message]
2019-09-11 7:09 ` [U-Boot] [PATCH 1/4] ARM: dts: at91: sama5d2: add seq for qspi1 Eugen.Hristev at microchip.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1566801667-16804-4-git-send-email-eugen.hristev@microchip.com \
--to=eugen.hristev@microchip.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox