mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
net: fm: call dtsec_init_phy() only when it is defined
dtsec_init_phy() is defined only with MII so add the proper conditional in the caller code. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
99f90fcb12
commit
fd23e80165
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,8 @@
|
||||||
|
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
|
|
||||||
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) && !defined(BITBANGMII)
|
#if ((defined(CONFIG_MII) || defined(CONFIG_CMD_MII)) && \
|
||||||
|
!defined(CONFIG_BITBANGMII))
|
||||||
|
|
||||||
#define TBIANA_SETTINGS (TBIANA_ASYMMETRIC_PAUSE | TBIANA_SYMMETRIC_PAUSE | \
|
#define TBIANA_SETTINGS (TBIANA_ASYMMETRIC_PAUSE | TBIANA_SYMMETRIC_PAUSE | \
|
||||||
TBIANA_FULL_DUPLEX)
|
TBIANA_FULL_DUPLEX)
|
||||||
|
@ -701,8 +702,11 @@ static int init_phy(struct fm_eth *fm_eth)
|
||||||
supported |= SUPPORTED_2500baseX_Full;
|
supported |= SUPPORTED_2500baseX_Full;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (CONFIG_IS_ENABLED(MII) || CONFIG_IS_ENABLED(CMD_MII)) && \
|
||||||
|
!CONFIG_IS_ENABLED(BITBANGMII)
|
||||||
if (fm_eth->type == FM_ETH_1G_E)
|
if (fm_eth->type == FM_ETH_1G_E)
|
||||||
dtsec_init_phy(fm_eth);
|
dtsec_init_phy(fm_eth);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PHYLIB
|
#ifdef CONFIG_PHYLIB
|
||||||
#ifdef CONFIG_DM_MDIO
|
#ifdef CONFIG_DM_MDIO
|
||||||
|
|
Loading…
Add table
Reference in a new issue