]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1f77600fcc6e3c680cbdaa79477bfd3da7f6e9d
treec91fb9d836939ed182e537e9538d6d79e085f9dd
parentf68bf4ea4819c1e573ee63910cf3a40260d8b590
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