ar71xx: fix ethernet packet loss issues on OM5P-AN
authorJohn Crispin <blogic@openwrt.org>
Tue, 14 Apr 2015 19:00:51 +0000 (19:00 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Apr 2015 19:00:51 +0000 (19:00 +0000)
commit4b0764d07fc06a486731b92d7283ab60526f380a
treec46a1408d8e720a312e7efeece8de93be1432195
parentdcc0f0aacdfbf90c510041063419997ae9ea3d5d
ar71xx: fix ethernet packet loss issues on OM5P-AN

The OM5P-AN boards are suffering from ethernet packet loss when booting with
some active POE setups or when switching to Fast Ethernet when previously
booted with Gigabit ethernet attached.

The cause of the problem is that the AR8035 PHYs requires special register
settings to work reliably on these boards. Enable the RGMII TX, RX delays and
disable SmartEE functionality of the AR8035 PHYs. Also enable the RXD and RDV
delay in the ETH_CFG register to fix the issue.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45438 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ath79/mach-om5p.c