projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mips: mt76xx: gardena-smart-gateway: Add board_late_init() to set LED def state
[oweals/u-boot.git]
/
board
/
gardena
/
smart-gateway-mt7688
/
board.c
diff --git
a/board/gardena/smart-gateway-mt7688/board.c
b/board/gardena/smart-gateway-mt7688/board.c
index 838dfc205b3645c4add203c92e8e6257cc405af3..3a1838e44a9a48f2ca2c8d355266c685b2ff01f5 100644
(file)
--- 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;
+}