diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-04-04 04:33:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-04 18:39:23 -0400 |
commit | f142af2e2064546ac470e8690acbd189b3584e67 (patch) | |
tree | 775c36dd86492fdc69f5b6f72bf56ef0d226df65 /include/linux/stmmac.h | |
parent | 9450f7506d28276c603275f84e54fc8779fb516c (diff) | |
download | linux-f142af2e2064546ac470e8690acbd189b3584e67.tar.gz linux-f142af2e2064546ac470e8690acbd189b3584e67.tar.bz2 linux-f142af2e2064546ac470e8690acbd189b3584e67.zip |
stmmac: Allow stmmac to work with other PHY buses(v3).
As stmmac mdio bus name prefix is hardcoded in the driver, this allows
only phys on stmmac mdio buses to connect, however stmmac should allow
phys on other mdio buses too.
This patch adds new variable phy_bus_name to plat_stmmacenet_data
struct to let the BSP decide which phy bus to be used by stmmac driver.
A typical use-case is to have generic MDIO buses like mdio-gpio on top
of stmmac.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 0dddc9e42b6b..172b5e15df2e 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -39,6 +39,7 @@ struct stmmac_mdio_bus_data { }; struct plat_stmmacenet_data { + char *phy_bus_name; int bus_id; int phy_addr; int interface; |