projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a9396a
)
Restore WAN/LAN activity/link LEDs before kernel loading
author
Piotr Dymacz
<pepe2k@gmail.com>
Mon, 3 Feb 2014 21:04:02 +0000
(22:04 +0100)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Mon, 3 Feb 2014 21:04:02 +0000
(22:04 +0100)
u-boot/lib_mips/mips_linux.c
patch
|
blob
|
history
diff --git
a/u-boot/lib_mips/mips_linux.c
b/u-boot/lib_mips/mips_linux.c
index 2ce2d4628cee79eaf0320d2d212a8f5bf5293c17..ec210e06c733d66bd6700dd720ed4705eab1aa16 100755
(executable)
--- a/
u-boot/lib_mips/mips_linux.c
+++ b/
u-boot/lib_mips/mips_linux.c
@@
-119,6
+119,11
@@
void do_bootm_linux(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){
wasp_set_cca();
#endif
+#if defined(CONFIG_FOR_DRAGINO_V2)
+ // Restore WAN/LAN LEDs (BIT 3 and 7 in GPIO_FUNCTION_1)
+ ar7240_reg_wr(AR7240_GPIO_FUNC, (ar7240_reg_rd(AR7240_GPIO_FUNC) | 0x88));
+#endif
+
#if defined(CONFIG_AR7100) || defined(CONFIG_AR7240)
// Pass the flash size as expected by current Linux kernel for AR7100
flash_size_mbytes = gd->bd->bi_flashsize/(1024 * 1024);