mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
board: sama7g5ek: set blue led on at boot time
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>
This commit is contained in:
parent
009b108d80
commit
93ddc09da2
1 changed files with 9 additions and 0 deletions
|
@ -17,6 +17,13 @@
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
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)
|
int board_late_init(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -65,6 +72,8 @@ int board_init(void)
|
||||||
/* address of boot parameters */
|
/* address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
||||||
|
|
||||||
|
board_leds_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue