From b167461bd95c9068a019bb45964d193747d0a28b Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 3 Feb 2014 22:04:02 +0100 Subject: [PATCH] Restore WAN/LAN activity/link LEDs before kernel loading --- u-boot/lib_mips/mips_linux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/u-boot/lib_mips/mips_linux.c b/u-boot/lib_mips/mips_linux.c index 2ce2d46..ec210e0 100755 --- 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); -- 2.25.1