ar8216: rework/fix AR8337 MAC swap handling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Dec 2015 14:25:45 +0000 (14:25 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 20 Dec 2015 14:25:45 +0000 (14:25 +0000)
commit814d70b2fdabec79c75b41460c10b5a63cc20b59
treed48e98f6aec115745d7e6881e59a3d2f17f05152
parentde50527a3804810213134cc19fcd9e0b8f3f8709
ar8216: rework/fix AR8337 MAC swap handling

In r45970 the MAC swap handling was made opt-in, however some boards
have been forgotten during the conversion. Since the reference design
uses this MAC swapping, and pretty much all known boards using this chip
seem to do so too, enabling the swapping is a more reasonable default
than leaving it disabled.

Change the code to still allow boards to opt-out of this.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47956
target/linux/ar71xx/files/arch/mips/ath79/mach-epg5000.c
target/linux/ar71xx/files/arch/mips/ath79/mach-esr1750.c
target/linux/ar71xx/files/arch/mips/ath79/mach-f9k1115v2.c
target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c
target/linux/ar71xx/files/arch/mips/ath79/mach-wlr8100.c
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/include/linux/ar8216_platform.h