summaryrefslogtreecommitdiff
path: root/board/freescale/ls2080aqds/ls2080aqds.c
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-05-18 14:48:35 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-05-19 09:22:08 +0530
commit8cbef912ee8e73fccf2543428e73ecd25d386dba (patch)
treed5c830581407ac68096911e1ac717e15274cff96 /board/freescale/ls2080aqds/ls2080aqds.c
parente58ac2dd7bb9cc74f9538dc71349a444bf8e2cda (diff)
downloadu-boot-8cbef912ee8e73fccf2543428e73ecd25d386dba.tar.gz
board: ls2080aqds: 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>
Diffstat (limited to 'board/freescale/ls2080aqds/ls2080aqds.c')
-rw-r--r--board/freescale/ls2080aqds/ls2080aqds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 4034bdee28..1c91c5b7f0 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -251,6 +251,10 @@ int board_init(void)
ppa_init();
#endif
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+ pci_init();
+#endif
+
return 0;
}