summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-01-29 13:51:51 +0800
committerFrank Li <Frank.Li@freescale.com>2015-02-04 21:53:31 +0800
commitd31b4fcc6175b1bc9a2cf672678da212b133af17 (patch)
tree8dbd646e6ec5c7690a950a7bb927f69850ff4965 /drivers
parentd0c3564b6a0f430254edcd8db1f33588bbeccb08 (diff)
downloadu-boot-imx-d31b4fcc6175b1bc9a2cf672678da212b133af17.zip
u-boot-imx-d31b4fcc6175b1bc9a2cf672678da212b133af17.tar.gz
u-boot-imx-d31b4fcc6175b1bc9a2cf672678da212b133af17.tar.bz2
MLK-10178-6 net:fec_mxc support shared MDIO bus
There are two FEC controller on MX7, and each MDIO bus can be shared with other. So add a configuration for this case. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fec_mxc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index c3c07ed..56b7628 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -1068,8 +1068,12 @@ int fecmxc_initialize_multi(bd_t *bd, int dev_id, int phy_id, uint32_t addr)
*/
base_mii = MXS_ENET0_BASE;
#else
+#ifdef CONFIG_FEC_MXC_MDIO_BASE
+ base_mii = CONFIG_FEC_MXC_MDIO_BASE;
+#else
base_mii = addr;
#endif
+#endif
debug("eth_init: fec_probe(bd, %i, %i) @ %08x\n", dev_id, phy_id, addr);
bus = fec_get_miibus(base_mii, dev_id);
if (!bus)