summaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO2016-06-24 15:16:26 +0200
committerDavid S. Miller2016-06-28 14:54:23 +0200
commit02e57b9d7c8ce9e403f15f48fb91dd6549aaf465 (patch)
treeb989243d2535a058aa1abbd412d58e5eea50487e /include/linux/stmmac.h
parentdrivers: net: stmmac: rework core ISR to better manage PCS and PMT (diff)
downloadkernel-qcow2-linux-02e57b9d7c8ce9e403f15f48fb91dd6549aaf465.tar.gz
kernel-qcow2-linux-02e57b9d7c8ce9e403f15f48fb91dd6549aaf465.tar.xz
kernel-qcow2-linux-02e57b9d7c8ce9e403f15f48fb91dd6549aaf465.zip
drivers: net: stmmac: add port selection programming
In case of SGMII more, for example when a MAC2MAC connection is needed, the port selection bits (inside the MAC configuration registers) have to be programmed according to the link selected. So the patch adds a new DT parameter to pass the port selection and to programmed related PCS and CORE to use it. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r--include/linux/stmmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h
index 0507dbfbf63c..705840e0438f 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -141,5 +141,6 @@ struct plat_stmmacenet_data {
struct stmmac_axi *axi;
int has_gmac4;
bool tso_en;
+ int mac_port_sel_speed;
};
#endif