From 711f2dc08d7a9ad4f036adc72fcc840d64c1fbb1 Mon Sep 17 00:00:00 2001 From: Lars Povlsen Date: Wed, 2 Jan 2019 09:52:24 +0100 Subject: 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 --- board/mscc/luton/luton.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/mscc') diff --git a/board/mscc/luton/luton.c b/board/mscc/luton/luton.c index b509b6b..807c717 100644 --- a/board/mscc/luton/luton.c +++ b/board/mscc/luton/luton.c @@ -5,6 +5,7 @@ #include #include +#include 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; } -- cgit v1.1