aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2014-01-16 05:51:43 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-16 18:23:43 -0500
commit9cbadf094d9d479413dc8cfa77dff9e732184337 (patch)
tree67ff8e1cc0f72f52e0a1baa0c2d00decd23afa64 /include/linux/stmmac.h
parent82a342d18a0653723156c98395bb75e9748e8968 (diff)
net: stmmac: support max-speed device tree property
This patch adds support to "max-speed" property which is a standard Ethernet device tree property. max-speed specifies maximum speed (specified in megabits per second) supported the device. Depending on the clocking schemes some of the boards can only support few link speeds, so having a way to limit the link speed in the mac driver would allow such setups to work reliably. Without this patch there is no way to tell the driver to limit the link speed. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Acked-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 bb5deb0feb6b..33ace712e7e8 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -110,6 +110,7 @@ struct plat_stmmacenet_data {
110 int force_sf_dma_mode; 110 int force_sf_dma_mode;
111 int force_thresh_dma_mode; 111 int force_thresh_dma_mode;
112 int riwt_off; 112 int riwt_off;
113 int max_speed;
113 void (*fix_mac_speed)(void *priv, unsigned int speed); 114 void (*fix_mac_speed)(void *priv, unsigned int speed);
114 void (*bus_setup)(void __iomem *ioaddr); 115 void (*bus_setup)(void __iomem *ioaddr);
115 int (*init)(struct platform_device *pdev); 116 int (*init)(struct platform_device *pdev);