net/phy/vitesse: Configure RGMII skew on VSC8601, if needed
authorAlex <alex.g@adaptrum.com>
Wed, 16 Nov 2016 09:02:33 +0000 (01:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 22:53:56 +0000 (17:53 -0500)
commit955e16026d08a601d02b961d13b6db9d6c13c8c9
treeb78d7f353e0323d970b39e05d20777b5cc0aecca
parent5f00a8d8a2c2fd99528ab1a3632f0e77f4d25202
net/phy/vitesse: Configure RGMII skew on VSC8601, if needed

With RGMII, we need a 1.5 to 2ns skew between clock and data lines. The
VSC8601 can handle this internally. While the VSC8601 can set more
fine-grained delays, the standard skew settings work out of the box.
The same heuristic is used to determine when this skew should be enabled
as in vsc824x_config_init().

Tested on custom board with AM3352 SOC and VSC801 PHY.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/vitesse.c