diff options
author | Stefan Roese <sr@denx.de> | 2018-10-09 08:59:13 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2018-11-18 16:02:23 +0100 |
commit | b1f51fc24f9f9f9be450a280c92a49d7e1a8668a (patch) | |
tree | 724a081db8a97624950aa93ab715db19e2a2250d /board | |
parent | 840293b83ceec3c8399f6aa4a6d4adbeb09b7040 (diff) | |
download | u-boot-b1f51fc24f9f9f9be450a280c92a49d7e1a8668a.tar.gz |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/gardena/smart-gateway-mt7688/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c index 838dfc205b..3a1838e44a 100644 --- a/board/gardena/smart-gateway-mt7688/board.c +++ b/board/gardena/smart-gateway-mt7688/board.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <led.h> #include <linux/io.h> #define MT76XX_AGPIO_CFG 0x1000003c @@ -18,3 +19,11 @@ int board_early_init_f(void) return 0; } + +int board_late_init(void) +{ + if (IS_ENABLED(CONFIG_LED)) + led_default_state(); + + return 0; +} |