diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-04-15 21:45:54 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-04-26 09:27:22 +0200 |
commit | 178d4f009990feeb01cb2d0002faf6dcca221968 (patch) | |
tree | 0c9999d9e6be1d9c8221fae8f77db73507e2f66e | |
parent | f3c326287e3e32f7ffcf2286462793a554b158c4 (diff) | |
download | u-boot-178d4f009990feeb01cb2d0002faf6dcca221968.zip u-boot-178d4f009990feeb01cb2d0002faf6dcca221968.tar.gz u-boot-178d4f009990feeb01cb2d0002faf6dcca221968.tar.bz2 |
eth: dm: fec: Change FEC PHY mask setting from CONFIG_PHYLIB to CONFIG_FEC_MXC_PHYADDR
Without this commit we do have an explicit dependency on CONFIG_PHYLIB
when one wants to set PHY ADDR on a iMX board (FEC + driver model).
This shall be changed to CONFIG_FEC_MXC_PHYADDR, as only when we do have
it set, we shall mask out other devices.
As a side effect, when CONFIG_FEC_MXC_PHYADDR is not set, we scan PHY bus
for connected PHY devices.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
-rw-r--r-- | drivers/net/fec_mxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 0076d63..f21fd44 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1230,7 +1230,7 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) struct phy_device *phydev; int mask = 0xffffffff; -#ifdef CONFIG_PHYLIB +#ifdef CONFIG_FEC_MXC_PHYADDR mask = 1 << CONFIG_FEC_MXC_PHYADDR; #endif |