ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U...
authorGabor Juhos <juhosg@openwrt.org>
Mon, 7 Jan 2013 14:30:37 +0000 (14:30 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 7 Jan 2013 14:30:37 +0000 (14:30 +0000)
commitba4de984b9272ee19790db80b6ed8ed7357094ce
tree8c4f68e7d9a051a9f2dd9aa1253fd46f19644e5e
parent251e4608b0e6ba7ff4dcc8547ac6f4090b00dbb8
ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards

The PHY_SWAP and PHY_ADDR_SWAP bits are initialized
differently by different versions of the bootloader.
This leads to broken ethernet connection with OpenWrt
on some boards.

Turn both SWAP bits OFF on these boards to make it
consistent regardless of the bootloader used.

Based on a patch by Michel Stempin <michel.stempin@wanadoo.fr>.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35037
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr11u.c
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3020.c
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c