aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-01-17 08:36:12 -0500
committerTom Rini <trini@konsulko.com>2022-01-17 08:36:12 -0500
commit6d2ebcd7be3e7f9cc81011ddb97540c81a301701 (patch)
treef7e2121a624292cb900d085254dd6336d51ff627 /board
parent34972e7ea6ef2827b7c18feb03ecfe8c952f162e (diff)
parentdbf500b55770e58313df9fefa217129da38ea1b6 (diff)
downloadu-boot-6d2ebcd7be3e7f9cc81011ddb97540c81a301701.zip
u-boot-6d2ebcd7be3e7f9cc81011ddb97540c81a301701.tar.gz
u-boot-6d2ebcd7be3e7f9cc81011ddb97540c81a301701.tar.bz2
Merge tag 'u-boot-at91-2022.04-b' of https://source.denx.de/u-boot/custodians/u-boot-at91
Second set of u-boot-at91 features for the 2022.04 cycle: This small feature set includes few changes for sama7g5 and sama7g5ek: turn blue led on at boot, changes required for the Rev4 of the board, better sync with the Linux DT with regards to the new DT nodes.
Diffstat (limited to 'board')
-rw-r--r--board/atmel/sama7g5ek/sama7g5ek.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/atmel/sama7g5ek/sama7g5ek.c b/board/atmel/sama7g5ek/sama7g5ek.c
index 411b311..ae18ed0 100644
--- a/board/atmel/sama7g5ek/sama7g5ek.c
+++ b/board/atmel/sama7g5ek/sama7g5ek.c
@@ -17,6 +17,13 @@
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)
{
return 0;
@@ -65,6 +72,8 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+ board_leds_init();
+
return 0;
}