diff options
author | Pankaj Bansal <pankaj.bansal@nxp.com> | 2018-09-18 15:46:48 +0530 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-10-24 14:45:36 -0500 |
commit | 9215bb1f37fbeb9dc9c18953040a5170214e9039 (patch) | |
tree | 0ee38962a1ad6b41cb5d1ebed20e2ee28e9d9446 /include/miiphy.h | |
parent | fb265a74cfed2c655e02390d4fb13ffcfece2101 (diff) |
miiphy: Add function to retrieve MDIO bus list head
In upcoming freescale board LX2160AQDS, the MDIO bus is muxed.
i.e. same MDIO bus can be routed to eight different slots depending
on mux register settings.
To support this mdio mux behavior, we add each MDIO bus mux as a
separate MDIO bus.
Now, various phy devices can be attached to each of these slots(mux).
The information about these devices is passed to OS via device tree.
To do the fdt fixups related to MDIO bus, its necessary that MDIO bus
list is accessed.Therefore, add a function to retrieve the list head.
Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/miiphy.h')
-rw-r--r-- | include/miiphy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 2da28e311a..f11763affd 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -39,6 +39,7 @@ void miiphy_init(void); int miiphy_set_current_dev(const char *devname); const char *miiphy_get_current_dev(void); struct mii_dev *mdio_get_current_dev(void); +struct list_head *mdio_get_list_head(void); struct mii_dev *miiphy_get_dev_by_name(const char *devname); struct phy_device *mdio_phydev_for_ethname(const char *devname); |