AA: ar71xx: disable PHY_SWAP and PHY_ADDR_SWAP bits on TL-WR703N/MR3020/MR3040/MR11U...
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Jan 2013 14:43:21 +0000 (14:43 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 7 Jan 2013 14:43:21 +0000 (14:43 +0000)
commit995e1004a0929d741307662bf2c323be68eff3eb
tree7c674305b4cc0cb333a624455b7aa926cb88a280
parent49eeb56984d7d99fc5fda87a63949e4b83e4356c
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 <michel.stempin@wanadoo.fr>.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@35038 3c298f89-4303-0410-b956-a3cf2f4a3e73
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