openwrtv3/target/linux/ar71xx
Felix Fietkau 6413f40e96 ar71xx: fix ethernet on wnr2000-v4
Most people report broken ethernet with upstream. Last year, user "franz.flasch"
authored a working mach-file. His patch is outdated so I modernized it. Original
patch and user commentary on page 1:
https://forum.openwrt.org/viewtopic.php?pid=260861#p260861

I have figured out what the critical differences are between the two that caused
upstream ethernet to break.
  1) Both ath79_init_mac() functions calls must be invocated before any GMAC init
  2) must init GMAC0 before GMAC1

That was enough to get upstream to function, but I wanted to enjoy my confidence
having tested franz's patch for a week sucessfully, so I put his whole
function in, which only features more differences in order of function calls.

An expert should consider these changes, which could pose potential bugs/issues:
1) No longer using the flag AR934X_ETH_CFG_SW_PHY_SWAP in the
ath79_setup_ar934x_eth_cfg() call.

2) Possible consequence of no longer explicitly setting ethernet duplex/speed.

Review: With this patch, my ethernet and wireless works.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45633
2015-05-08 12:23:45 +00:00
..
base-files ar71xx: track the correct WAN interface on wnr2000-v4 2015-05-08 12:23:40 +00:00
files ar71xx: fix ethernet on wnr2000-v4 2015-05-08 12:23:45 +00:00
generic ar71xx: add support for compex wpj344 2015-04-20 20:47:48 +00:00
image ar71xx: make art partition read only on 16MB ew-dorin board 2015-05-08 10:45:26 +00:00
mikrotik ar71xx: add initial support for RB911G-5HPacD 2015-04-07 20:04:03 +00:00
nand Netgear R6100 support 2014-11-26 08:28:22 +00:00
patches-3.18 Add support for Ubiquiti Rocket M XW devices 2015-04-21 12:42:13 +00:00
base-files.mk ar71xx: drop procd_init console hack 2013-06-21 16:53:11 +00:00
config-3.18 ar71xx: add support for compex wpj344 2015-04-20 20:47:48 +00:00
Makefile ar71xx: make v3.18 default 2015-02-17 14:33:29 +00:00
modules.mk ar71xx: always enable hw ecc support for the ar934x-nfc module 2013-11-01 18:33:18 +00:00