]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: RGMII skew delay configuration
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 19 Mar 2020 14:19:58 +0000 (15:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:14:46 +0000 (21:14 -0700)
commita0b848fb9f2983075d1c59fdef76611f22b2e92f
treee1baded556e97c18dc3a7a86fd239ac4b40995fb
parent4e24e992803f2c573d09c3ad9601a3dfdd1cb4cb
net: phy: mscc: RGMII skew delay configuration

This patch adds support for configuring the RGMII skew delays in Rx and
Tx. The Rx and Tx skews are set based on the interface mode. By default
their configuration is set to the default value in hardware (0.2ns);
this means the driver do not rely anymore on the bootloader
configuration.

Then based on the interface mode being used, a 2ns delay is added:
- RGMII_ID adds it for both Rx and Tx.
- RGMII_RXID adds it for Rx.
- RGMII_TXID adds it for Tx.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c