From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugen.Hristev at microchip.com Date: Mon, 26 Aug 2019 06:47:09 +0000 Subject: [U-Boot] [PATCH 4/4] board: atmel: sama5d27_wlsom1_ek: start green led in SPL In-Reply-To: <1566801667-16804-1-git-send-email-eugen.hristev@microchip.com> References: <1566801667-16804-1-git-send-email-eugen.hristev@microchip.com> Message-ID: <1566801667-16804-4-git-send-email-eugen.hristev@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Eugen Hristev When SPL boots, enable green led on the board. Signed-off-by: Eugen Hristev --- 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