From: Piotr Dymacz Date: Mon, 3 Feb 2014 21:04:02 +0000 (+0100) Subject: Restore WAN/LAN activity/link LEDs before kernel loading X-Git-Tag: 2014-11-19~32^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b167461bd95c9068a019bb45964d193747d0a28b;p=oweals%2Fu-boot_mod.git Restore WAN/LAN activity/link LEDs before kernel loading --- 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);