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)
commit328b89e40ea2b050691fb7560a74bc1d3069bf93
tree23b1b15751c761073d5c428627e062f08b602332
parent16f5293fa18c6a1ad87724a187f53c301dffc001
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