net: stmmac: socfpga: fix phy and ptp_ref setup for Arria10/Stratix10
authorDinh Nguyen <dinguyen@kernel.org>
Wed, 5 Jun 2019 15:05:51 +0000 (10:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 21:21:06 +0000 (14:21 -0700)
commit40ae25505fe834648ce4aa70b073ee934942bfdb
treeeb05d79c9776b8b6e742eab7cdc958fbc60c0018
parentb637e0856a6248230e53b5465ab0751f27fdf320
net: stmmac: socfpga: fix phy and ptp_ref setup for Arria10/Stratix10

On the Arria10, Agilex, and Stratix10 SoC, there are a few differences from
the Cyclone5 and Arria5:
 - The emac PHY setup bits are in separate registers.
 - The PTP reference clock select mask is different.
 - The register to enable the emac signal from FPGA is different.

Thus, this patch creates a separate function for setting the phy modes on
Arria10/Agilex/Stratix10. The separation is based a new DTS binding:
"altr,socfpga-stmmac-a10-s10".

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c