summaryrefslogtreecommitdiff
path: root/drivers/net/pcs/pcs-xpcs.h
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-06-11 23:05:26 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-11 23:43:56 +0300
commitf7380bba42fd0654bf8195fb741d5f92b0f46df9 (patch)
treeadfa2f9596e46fadb8b699eb901ffec4b638556b /drivers/net/pcs/pcs-xpcs.h
parentdd0721ea4c7a6c2ec8b309ff57d74d88f08d4c23 (diff)
downloadlinux-f7380bba42fd0654bf8195fb741d5f92b0f46df9.tar.xz
net: pcs: xpcs: add support for NXP SJA1110
The NXP SJA1110 switch integrates its own, non-Synopsys PMA, but it manages it through the register space of the XPCS itself, in a small register window inside MDIO_MMD_VEND2 from address 0x8030 to 0x806e. This coincides with where the registers for the default Synopsys PMA are, but the register definitions are of course not the same. This situation is an odd hardware quirk, but the simplest way to manage it is to drive the SJA1110's PMA from within the XPCS driver. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcs/pcs-xpcs.h')
-rw-r--r--drivers/net/pcs/pcs-xpcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pcs/pcs-xpcs.h b/drivers/net/pcs/pcs-xpcs.h
index 3daf4276a158..35651d32a224 100644
--- a/drivers/net/pcs/pcs-xpcs.h
+++ b/drivers/net/pcs/pcs-xpcs.h
@@ -111,3 +111,5 @@ int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg);
int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val);
int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs);
+int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs);
+int nxp_sja1110_2500basex_pma_config(struct dw_xpcs *xpcs);