summaryrefslogtreecommitdiffstats
path: root/include/linux/stmmac.h
diff options
context:
space:
mode:
authorMathieu Olivari <mathieu@codeaurora.org>2015-05-27 11:02:47 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-30 17:04:36 -0700
commit5790cf3c00c2f92aacba348e13f8a9a8f5dd96bd (patch)
tree294a0500894fb9cc6f9f3f7001952b39fbba0dda /include/linux/stmmac.h
parentf7b81d67d0547c6ce246c89900eaa41303a3f89a (diff)
downloadop-kernel-dev-5790cf3c00c2f92aacba348e13f8a9a8f5dd96bd.zip
op-kernel-dev-5790cf3c00c2f92aacba348e13f8a9a8f5dd96bd.tar.gz
stmmac: add phy-handle support to the platform layer
On stmmac driver, PHY specification in device-tree was done using the non-standard property "snps,phy-addr". Specifying a PHY on a different MDIO bus that the one within the stmmac controller doesn't seem to be possible when device-tree is used. This change adds support for the phy-handle property, as specified in Documentation/devicetree/bindings/net/ethernet.txt. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> 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 7f484a2..c735f5c 100644
--- a/include/linux/stmmac.h
+++ b/include/linux/stmmac.h
@@ -99,6 +99,7 @@ struct plat_stmmacenet_data {
int phy_addr;
int interface;
struct stmmac_mdio_bus_data *mdio_bus_data;
+ struct device_node *phy_node;
struct stmmac_dma_cfg *dma_cfg;
int clk_csr;
int has_gmac;
OpenPOWER on IntegriCloud