linux_dsm_epyc7002/drivers/net/ethernet/altera
Neill Whillans 3b80456433 net: ethernet: altera_tse: add support for SGMII PCS
Add support for the (optional) SGMII PCS functionality of the Altera
TSE MAC. If the phy-mode is set to 'sgmii' then we attempt to discover
and initialise the PCS so that the MAC can communicate to the PHY.

The PCS IP block provides a scratch register for testing presence of
the PCS, which is mapped into one of the two MDIO spaces present in
the MAC's register space.  Once we have determined that the scratch
register is functioning, we attempt to initialise the PCS to
auto-negotiate an SGMII link with the PHY. There is no need to monitor
or manage the SGMII link beyond this, since the normal PHY MDIO will
then be used to monitor the media layer.

The Altera TSE MAC has only one way in which it can be configured with an
SGMII PCS, and as such, this patch only looks to the phy-mode to select
whether or not to attempt to initialise the PCS registers.  During
initialisation, we report the PCS's equivalent of a PHY ID register.
This can be parameterised during the IP instantiation and is often left
as '0x00000000' which is not an error.

Signed-off-by: Neill Whillans <neill.whillans@codethink.co.uk>
Reviewed-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-02 10:36:47 -05:00
..
altera_msgdma.c Altera TSE: Fix sparse errors and warnings 2014-05-15 16:46:46 -04:00
altera_msgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_msgdmahw.h net: eth: altera: Resolve false errors from MSGDMA to TSE 2015-04-25 14:41:52 -04:00
altera_sgdma.c net: eth: altera: Remove sgdmadesclen member from altera_tse_private 2015-08-12 14:31:07 -07:00
altera_sgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_sgdmahw.h net: eth: altera: Remove sgdmadesclen member from altera_tse_private 2015-08-12 14:31:07 -07:00
altera_tse_ethtool.c net: ethernet: altera_tse: use phy_ethtool_{get|set}_link_ksettings 2016-06-22 16:22:41 -04:00
altera_tse_main.c net: ethernet: altera_tse: add support for SGMII PCS 2016-12-02 10:36:47 -05:00
altera_tse.h net: ethernet: altera_tse: add support for SGMII PCS 2016-12-02 10:36:47 -05:00
altera_utils.c Altera TSE: Fix sparse errors and warnings 2014-05-15 16:46:46 -04:00
altera_utils.h Altera TSE: Fix sparse errors and warnings 2014-05-15 16:46:46 -04:00
Kconfig Altera TSE: ALTERA_TSE should depend on HAS_DMA 2014-05-05 13:16:22 -04:00
Makefile Altera TSE: Fix sparse errors and warnings 2014-05-15 16:46:46 -04:00