]> git.baikalelectronics.ru Git - uboot.git/commit
miiphy: Add function to retrieve MDIO bus list head
authorPankaj Bansal <pankaj.bansal@nxp.com>
Tue, 18 Sep 2018 10:16:48 +0000 (15:46 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 24 Oct 2018 19:45:36 +0000 (14:45 -0500)
commit8ee5a21238beaf11830557c2b829f8881f1e60c6
tree0ee38962a1ad6b41cb5d1ebed20e2ee28e9d9446
parenta2f060c9a0d58311c748f08f1119ff661caa4703
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>
common/miiphyutil.c
include/miiphy.h