aboutsummaryrefslogtreecommitdiff
path: root/board/atmel/sama5d2_icp/sama5d2_icp.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/atmel/sama5d2_icp/sama5d2_icp.c')
-rw-r--r--board/atmel/sama5d2_icp/sama5d2_icp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/atmel/sama5d2_icp/sama5d2_icp.c b/board/atmel/sama5d2_icp/sama5d2_icp.c
index 3f33fcfc46..da697a7b0f 100644
--- a/board/atmel/sama5d2_icp/sama5d2_icp.c
+++ b/board/atmel/sama5d2_icp/sama5d2_icp.c
@@ -19,6 +19,13 @@
DECLARE_GLOBAL_DATA_PTR;
+static void rgb_leds_init(void)
+{
+ atmel_pio4_set_pio_output(AT91_PIO_PORTB, 0, 0); /* LED RED */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTB, 1, 0); /* LED GREEN */
+ atmel_pio4_set_pio_output(AT91_PIO_PORTA, 31, 1); /* LED BLUE */
+}
+
int board_late_init(void)
{
return 0;
@@ -52,6 +59,8 @@ int board_init(void)
/* address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+ rgb_leds_init();
+
return 0;
}