mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
mips: mt76xx: gardena-smart-gateway: Add board_late_init() to set LED def state
This is needed to set the LEDs automatically to a default state, as configured in the dts. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
840293b83c
commit
b1f51fc24f
@ -24,6 +24,7 @@ choice
|
|||||||
config BOARD_GARDENA_SMART_GATEWAY_MT7688
|
config BOARD_GARDENA_SMART_GATEWAY_MT7688
|
||||||
bool "Gardena Smart Gateway"
|
bool "Gardena Smart Gateway"
|
||||||
depends on SOC_MT7620
|
depends on SOC_MT7620
|
||||||
|
select BOARD_LATE_INIT
|
||||||
select SUPPORTS_BOOT_RAM
|
select SUPPORTS_BOOT_RAM
|
||||||
help
|
help
|
||||||
Gardena Smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
|
Gardena Smart Gateway boards have a MT7688 SoC with 128 MiB of RAM
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <led.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#define MT76XX_AGPIO_CFG 0x1000003c
|
#define MT76XX_AGPIO_CFG 0x1000003c
|
||||||
@ -18,3 +19,11 @@ int board_early_init_f(void)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int board_late_init(void)
|
||||||
|
{
|
||||||
|
if (IS_ENABLED(CONFIG_LED))
|
||||||
|
led_default_state();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user