mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
board: ls2088ardb: transition to DM_ETH
In case CONFIG_DM_ETH is enabled, no hardcoding is necessary for DPAA2 Ethernet devices. Compile out any unnecessary setup when CONFIG_DM_ETH is activated. Also, force the PCI devices to be enumerated at probe time. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
committed by
Priyanka Jain
parent
8b6558bd41
commit
8da1058b98
@@ -23,6 +23,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
|
#ifndef CONFIG_DM_ETH
|
||||||
#if defined(CONFIG_FSL_MC_ENET)
|
#if defined(CONFIG_FSL_MC_ENET)
|
||||||
int i, interface;
|
int i, interface;
|
||||||
struct memac_mdio_info mdio_info;
|
struct memac_mdio_info mdio_info;
|
||||||
@@ -99,6 +100,7 @@ int board_eth_init(bd_t *bis)
|
|||||||
|
|
||||||
cpu_eth_init(bis);
|
cpu_eth_init(bis);
|
||||||
#endif /* CONFIG_FSL_MC_ENET */
|
#endif /* CONFIG_FSL_MC_ENET */
|
||||||
|
#endif /* !CONFIG_DM_ETH */
|
||||||
|
|
||||||
#ifdef CONFIG_PHY_AQUANTIA
|
#ifdef CONFIG_PHY_AQUANTIA
|
||||||
/*
|
/*
|
||||||
@@ -112,7 +114,12 @@ int board_eth_init(bd_t *bis)
|
|||||||
gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
|
gd->jt->mdio_phydev_for_ethname = mdio_phydev_for_ethname;
|
||||||
gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
|
gd->jt->miiphy_set_current_dev = miiphy_set_current_dev;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DM_ETH
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
return pci_eth_init(bis);
|
return pci_eth_init(bis);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_RESET_PHY_R)
|
#if defined(CONFIG_RESET_PHY_R)
|
||||||
|
@@ -244,6 +244,10 @@ int board_init(void)
|
|||||||
sec_init();
|
sec_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
|
||||||
|
pci_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user