AA: ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U...
authorGabor Juhos <[email protected]>
Mon, 7 Jan 2013 14:43:21 +0000 (14:43 +0000)
committerGabor Juhos <[email protected]>
Mon, 7 Jan 2013 14:43:21 +0000 (14:43 +0000)
commitcb712aff08423f1f8e31aacd15fa20a99b11276e
tree388e5531c86ac17e3e4d7779341cbc8d0a57447b
parent71904dd98a3fc78378898df98089988e998339af
AA: ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U boards

Backport of r35037.

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 <[email protected]>.

Signed-off-by: Gabor Juhos <[email protected]>
SVN-Revision: 35038
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