mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
driver: net: fm: minor fix in DM ETH support
Bus callback functions for read/write/reset need to be set only for DM_ETH, moving endif a bit lower. Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
b84519cbd5
commit
9b2e892eb6
1 changed files with 1 additions and 1 deletions
|
@ -54,10 +54,10 @@ static void dtsec_configure_serdes(struct fm_eth *priv)
|
||||||
bus.priv = priv->mac->phyregs;
|
bus.priv = priv->mac->phyregs;
|
||||||
#else
|
#else
|
||||||
bus.priv = priv->pcs_mdio;
|
bus.priv = priv->pcs_mdio;
|
||||||
#endif
|
|
||||||
bus.read = memac_mdio_read;
|
bus.read = memac_mdio_read;
|
||||||
bus.write = memac_mdio_write;
|
bus.write = memac_mdio_write;
|
||||||
bus.reset = memac_mdio_reset;
|
bus.reset = memac_mdio_reset;
|
||||||
|
#endif
|
||||||
|
|
||||||
qsgmii_loop:
|
qsgmii_loop:
|
||||||
/* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */
|
/* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */
|
||||||
|
|
Loading…
Add table
Reference in a new issue