summaryrefslogtreecommitdiff
path: root/board/mscc
diff options
context:
space:
mode:
authorLars Povlsen <lars.povlsen@microchip.com>2019-01-02 11:52:24 +0300
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2019-01-16 15:56:43 +0300
commit711f2dc08d7a9ad4f036adc72fcc840d64c1fbb1 (patch)
tree054776da518271043c91586c71b288b742eb81ea /board/mscc
parent738f2b148d78098df959e89fa467d63a4e4358c5 (diff)
downloadu-boot-711f2dc08d7a9ad4f036adc72fcc840d64c1fbb1.tar.xz
mips: luton: 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 'luton' SoC. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
Diffstat (limited to 'board/mscc')
-rw-r--r--board/mscc/luton/luton.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/mscc/luton/luton.c b/board/mscc/luton/luton.c
index b509b6beb3..807c717e33 100644
--- a/board/mscc/luton/luton.c
+++ b/board/mscc/luton/luton.c
@@ -5,6 +5,7 @@
#include <common.h>
#include <asm/io.h>
+#include <led.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -27,6 +28,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;
}