diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-08-26 06:47:09 +0000 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2019-10-08 09:16:11 +0300 |
commit | a7b0bb63ba54516272789b3b9eb5303553b46745 (patch) | |
tree | 8fc95babb4041ad5c3685fac0cf0217f5b0d1f13 /board/atmel | |
parent | 2a09eb6340e055be03008b75a7ca322a39482d3e (diff) |
board: atmel: sama5d27_wlsom1_ek: start green led in SPL
When SPL boots, enable green led on the board.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'board/atmel')
-rw-r--r-- | board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c b/board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c index 19300483b5..fda06c824d 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 |