summaryrefslogtreecommitdiffstats
path: root/drivers/net/ep93xx.h
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2016-02-21 18:03:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-25 09:42:29 +0100
commita7932a35da1f9946e27d656f0d8bbc6a48530be5 (patch)
treeab08df2b3fedeb3782de571d68fd0bfc4480d48a /drivers/net/ep93xx.h
parent2bea4f8768c654b15e8029bc08f1a37c5f7fae1d (diff)
downloadbarebox-a7932a35da1f9946e27d656f0d8bbc6a48530be5.tar.gz
barebox-a7932a35da1f9946e27d656f0d8bbc6a48530be5.tar.xz
EP93xx eth: allow passing of phy config via platform data
Passing phy configuration to the ep93xx_eth driver was not supported yet and will be added with this patch. When no pdata is passed, the probably broken default of phy_addr = 0 will be used to maintain compatibility with the previous implementation. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/ep93xx.h')
-rw-r--r--drivers/net/ep93xx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ep93xx.h b/drivers/net/ep93xx.h
index 89451b8a5f..32ae57f9f2 100644
--- a/drivers/net/ep93xx.h
+++ b/drivers/net/ep93xx.h
@@ -137,6 +137,8 @@ struct ep93xx_eth_priv {
struct tx_descriptor_queue tx_dq;
struct tx_status_queue tx_sq;
+ int phy_addr;
+ phy_interface_t interface;
struct mii_bus miibus;
};