summaryrefslogtreecommitdiff
path: root/drivers/net/Kconfig
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-02-25 13:34:11 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:32 +0800
commita46e14a18e71d7080457a4be4320cccb311f7879 (patch)
tree56452126613244a9d3e918497d267db16ef0860e /drivers/net/Kconfig
parent5e89820ac4a2103fe4c3bee64710e46c8cc69216 (diff)
downloadu-boot-imx-a46e14a18e71d7080457a4be4320cccb311f7879.zip
u-boot-imx-a46e14a18e71d7080457a4be4320cccb311f7879.tar.gz
u-boot-imx-a46e14a18e71d7080457a4be4320cccb311f7879.tar.bz2
MLK-12452-1 FEC: Update fec driver to support two MDIO
On i.MX6SX, 6UL and 7D, there are two enet controllers each has a MDIO port. Some boards share the MDIO port for the two enets. So introduce a configuration CONFIG_FEC_MXC_MDIO_BASE to indicate the MDIO port for sharing. In Kconfig, user needs enable CONFIG_FEC_MXC_SHARE_MDIO first to enter the CONFIG_FEC_MXC_MDIO_BASE. Without defining this configuration, the enet will uses own MDIO port. Also add this configurationfor FEC DM driver, since the ENET PHY currently does not support FDT. Modify the dev_id for DM driver, the first fec will set dev_id with 0, while second fec sets the dev_id with 1. So the MII bus name won't be duplicated. Then we can add two FEC devices from DTB. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 088afc073c480bd02208145bfb04259ccdf391c1)
Diffstat (limited to 'drivers/net/Kconfig')
-rw-r--r--drivers/net/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 70e3661..6d9c515 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -123,6 +123,17 @@ config FEC_MXC
This driver supports the 10/100 Fast Ethernet controller for
NXP i.MX processors.
+config FEC_MXC_SHARE_MDIO
+ bool "Share the MDIO bus for FEC controller"
+ depends on FEC_MXC
+
+config FEC_MXC_MDIO_BASE
+ hex "MDIO base address for the FEC controller"
+ depends on FEC_MXC_SHARE_MDIO
+ help
+ This specifies the MDIO registers base address. It is used when
+ two FEC controllers share MDIO bus.
+
config MVPP2
bool "Marvell Armada 375 network interface support"
depends on ARMADA_375