mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
board: ls1088ardb: 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:
parent
988e33f8d4
commit
8b6558bd41
2 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
#include <fsl-mc/fsl_mc.h>
|
#include <fsl-mc/fsl_mc.h>
|
||||||
#include <fsl-mc/ldpaa_wriop.h>
|
#include <fsl-mc/ldpaa_wriop.h>
|
||||||
|
|
||||||
|
#ifndef CONFIG_DM_ETH
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_FSL_MC_ENET)
|
#if defined(CONFIG_FSL_MC_ENET)
|
||||||
|
@ -95,6 +96,7 @@ int board_eth_init(bd_t *bis)
|
||||||
|
|
||||||
return pci_eth_init(bis);
|
return pci_eth_init(bis);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_RESET_PHY_R)
|
#if defined(CONFIG_RESET_PHY_R)
|
||||||
void reset_phy(void)
|
void reset_phy(void)
|
||||||
|
|
|
@ -801,6 +801,11 @@ int board_init(void)
|
||||||
#ifdef CONFIG_FSL_LS_PPA
|
#ifdef CONFIG_FSL_LS_PPA
|
||||||
ppa_init();
|
ppa_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
|
||||||
|
pci_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue