summaryrefslogtreecommitdiff
path: root/include/fm_eth.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-08-14 06:47:22 +0000
committerAndy Fleming <afleming@freescale.com>2012-08-23 10:24:18 -0500
commitae2291fbe0f9858d332423a97c6b09157005050f (patch)
tree1169c04179489ea568b65ab78e3db98106e3c2e6 /include/fm_eth.h
parent99abf7ded3b8daf82bdf1a60d1a92cb76c482c9a (diff)
downloadu-boot-imx-ae2291fbe0f9858d332423a97c6b09157005050f.zip
u-boot-imx-ae2291fbe0f9858d332423a97c6b09157005050f.tar.gz
u-boot-imx-ae2291fbe0f9858d332423a97c6b09157005050f.tar.bz2
fm-eth: add function fm_info_get_phy_address()
Function fm_info_get_phy_address() returns the PHY address for a given Fman port. This is handy when the MDIO code needs to fixup the Ethernet nodes in the device tree to point to PHY nodes for a specific PHY address. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/fm_eth.h')
-rw-r--r--include/fm_eth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fm_eth.h b/include/fm_eth.h
index 05121ea..e56541d 100644
--- a/include/fm_eth.h
+++ b/include/fm_eth.h
@@ -110,6 +110,7 @@ void fman_enet_init(void);
void fdt_fixup_fman_ethernet(void *fdt);
phy_interface_t fm_info_get_enet_if(enum fm_port port);
void fm_info_set_phy_address(enum fm_port port, int address);
+int fm_info_get_phy_address(enum fm_port port);
void fm_info_set_mdio(enum fm_port port, struct mii_dev *bus);
void fm_disable_port(enum fm_port port);