summaryrefslogtreecommitdiff
path: root/board/mscc
diff options
context:
space:
mode:
authorLars Povlsen <lars.povlsen@microchip.com>2019-01-02 09:52:26 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-01-16 13:56:43 +0100
commit4deb09632d8046a68c0636371816477cfbcb70dd (patch)
treea89623825fa056d65bb2393e699f4c75c5b42642 /board/mscc
parent26ad3c43a71ead28f5643101107c3c137d21caf1 (diff)
mips: ocelot: Enable use of serial gpio for LED
This enables the use of the MSCC serial GPIO driver to control the LEDs on the MSCC VCoreIII 'ocelot' pcb123 and pcb120. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Diffstat (limited to 'board/mscc')
-rw-r--r--board/mscc/ocelot/ocelot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c
index a557cacd1b..a05c308669 100644
--- a/board/mscc/ocelot/ocelot.c
+++ b/board/mscc/ocelot/ocelot.c
@@ -9,6 +9,7 @@
#include <asm/types.h>
#include <environment.h>
#include <spi.h>
+#include <led.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -56,6 +57,11 @@ int board_early_init_r(void)
/* Address of boot parameters */
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+
+ /* LED setup */
+ if (IS_ENABLED(CONFIG_LED))
+ led_default_state();
+
return 0;
}