net: phy: Allow BCM5481x PHYs to setup internal TX/RX clock delay
authorAbhishek Shah <abhishek.shah@broadcom.com>
Sun, 30 Apr 2017 05:34:21 +0000 (11:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:56:19 +0000 (22:56 -0400)
commit733336262b28d383cf72eba2287f1132deea4f47
tree802114a77a8fc3c7a6c369251f2868d75bc87706
parentd832565032280bae2cbff4fdb4d2c793de60d5be
net: phy: Allow BCM5481x PHYs to setup internal TX/RX clock delay

This patch allows users to enable/disable internal TX and/or RX
clock delay for BCM5481x series PHYs so as to satisfy RGMII timing
specifications.

On a particular platform, whether TX and/or RX clock delay is required
depends on how PHY connected to the MAC IP. This requirement can be
specified through "phy-mode" property in the platform device tree.

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c