mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
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>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
738f2b148d
commit
711f2dc08d
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
#include <led.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
@@ -27,6 +28,11 @@ int board_early_init_r(void)
|
|||||||
|
|
||||||
/* Address of boot parameters */
|
/* Address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||||
|
|
||||||
|
/* LED setup */
|
||||||
|
if (IS_ENABLED(CONFIG_LED))
|
||||||
|
led_default_state();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -46,6 +46,9 @@ CONFIG_ENV_IS_IN_SPI_FLASH=y
|
|||||||
CONFIG_NET_RANDOM_ETHADDR=y
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
CONFIG_CLK=y
|
CONFIG_CLK=y
|
||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
|
CONFIG_MSCC_SGPIO=y
|
||||||
|
CONFIG_LED=y
|
||||||
|
CONFIG_LED_GPIO=y
|
||||||
CONFIG_DM_SPI_FLASH=y
|
CONFIG_DM_SPI_FLASH=y
|
||||||
CONFIG_SPI_FLASH=y
|
CONFIG_SPI_FLASH=y
|
||||||
CONFIG_SPI_FLASH_BAR=y
|
CONFIG_SPI_FLASH_BAR=y
|
||||||
|
Reference in New Issue
Block a user