ar71xx: Use PHY fixups for Open Mesh MR900
authorSven Eckelmann <sven.eckelmann@open-mesh.com>
Thu, 19 May 2016 18:20:57 +0000 (20:20 +0200)
committerSven Eckelmann <sven@narfation.org>
Wed, 21 Sep 2016 16:16:54 +0000 (18:16 +0200)
commit9bac508e466b664547b397b949d323e644a45987
tree6680dba43e4607beb1144ddf6a7f9d997875f078
parent5ba0cfb798ce0fdce5d6c085f0fe63c8f524081d
ar71xx: Use PHY fixups for Open Mesh MR900

The delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in
different ways. u-boot only modifies the ETH_CFG of the QCA955x based on
the link speed. But OpenWrt can only modify the PHY delays based on the
link speed.

This can lead to communication problems when u-boot initializes the ETH_CFG
for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY
delays to an incompatible value.

Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and
only rely on the AT803x PHY settings.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Backport of r49030
target/linux/ar71xx/files/arch/mips/ath79/mach-mr900.c