net: phy: micrel.c: add rgmii interface delay possibility to ksz9131
authorPhilippe Schenker <philippe.schenker@toradex.com>
Wed, 25 Mar 2020 17:34:24 +0000 (18:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 04:44:26 +0000 (21:44 -0700)
commitbd734a742d5533fb9190ecd8cf25befc1f759a5b
treec91fb9d836939ed182e537e9538d6d79e085f9dd
parent791bb3fcafcedd11f9066da9fee9342ecb6904d0
net: phy: micrel.c: add rgmii interface delay possibility to ksz9131

The KSZ9131 provides DLL controlled delays on RXC and TXC lines. This
patch makes use of those delays. The information which delays should
be enabled or disabled comes from the interface names, documented in
ethernet-controller.yaml:

rgmii:      Disable RXC and TXC delays
rgmii-id:   Enable RXC and TXC delays
rgmii-txid: Enable only TXC delay, disable RXC delay
rgmii-rxid: Enable onlx RXC delay, disable TXC delay

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c