ar8327: Add workarounds for AR8337 switch.
authorVittorio Gambaletta <openwrt@vittgam.net>
Sun, 26 Mar 2017 08:08:20 +0000 (10:08 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 30 Mar 2017 07:48:52 +0000 (09:48 +0200)
commit967b6be118e3217e8d6a28df9c615d3255e7b1ae
tree8d1dd588af169e8e5313f975f56c95c38e68b005
parent5d4aecee3e9c94c04b151d3005fa5287610d31e1
ar8327: Add workarounds for AR8337 switch.

RGMII RX delay setting needs to be always specified for AR8337 to
avoid port 5 RX hang on high traffic / flood conditions.

Also, the HOL registers that set per-port and per-packet-priority
buffer sizes are updated with the reduced values suggested by the
QCA switch team.

Finally, AR8327 reserved register fixups are disabled for the AR8337.

This patch is adapted from the Code Aurora QSDK, but with magic
values mapped to proper defines.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/drivers/net/phy/ar8327.h