diff options
author | Mihai Sain <mihai.sain@microchip.com> | 2022-03-07 11:20:50 +0200 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2022-04-01 15:42:46 +0300 |
commit | d05fc47bbc6e95f6cc16baa74d10fc40488d6798 (patch) | |
tree | 35bfb58175dc92284c523696565260467ba3e67b /board/atmel/sama5d2_ptc_ek | |
parent | f206af80f8654dd6db57f021779e93e84ecb8fed (diff) | |
download | u-boot-d05fc47bbc6e95f6cc16baa74d10fc40488d6798.zip u-boot-d05fc47bbc6e95f6cc16baa74d10fc40488d6798.tar.gz u-boot-d05fc47bbc6e95f6cc16baa74d10fc40488d6798.tar.bz2 |
board: at91: sama5d2: set blue led on at boot time
Set blue led on at boot time in order to highlight that u-boot is loaded.
This is done for all sama5d2 based boards which contain an RGB led.
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
Diffstat (limited to 'board/atmel/sama5d2_ptc_ek')
-rw-r--r-- | board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c index 2a2439c..cca5bd1 100644 --- a/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c +++ b/board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c @@ -25,6 +25,13 @@ extern void at91_pda_detect(void); DECLARE_GLOBAL_DATA_PTR; +static void rgb_leds_init(void) +{ + atmel_pio4_set_pio_output(AT91_PIO_PORTB, 10, 0); /* LED RED */ + atmel_pio4_set_pio_output(AT91_PIO_PORTB, 8, 0); /* LED GREEN */ + atmel_pio4_set_pio_output(AT91_PIO_PORTB, 6, 1); /* LED BLUE */ +} + #ifdef CONFIG_NAND_ATMEL static void board_nand_hw_init(void) { @@ -113,6 +120,8 @@ int board_init(void) /* address of boot parameters */ gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; + rgb_leds_init(); + #ifdef CONFIG_NAND_ATMEL board_nand_hw_init(); #endif |