net/phy/vitesse: Rework RGMII skew configuration for VSC8601
authorAlex <alex.g@adaptrum.com>
Tue, 22 Nov 2016 18:55:13 +0000 (10:55 -0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 8 Dec 2016 16:36:22 +0000 (10:36 -0600)
commitbb135a0180c31fbd7456021fb9700b49bba7f533
tree22d8f65bdf2e41096d13f2bfd458fb25b3c3698d
parentc7ac15388ec92e7c46924dee067c7253603dd01c
net/phy/vitesse: Rework RGMII skew configuration for VSC8601

The VSC8601 config tried to add an RGMII skew based on #defines that
no config defines. That's quite an ugly way to do it. Since the skew
is only needed on RGMII interfaces, check the interface mode at
runtime, and apply the settings accordingly.

Tested on custom board with AM3352 SOC and VSC801 PHY.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/vitesse.c