summaryrefslogtreecommitdiff
path: root/board/freescale/ls2080ardb/ls2080ardb.c
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-03-18 17:47:40 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-04-29 08:40:54 +0300
commit8da1058b98a6ce03b7ab69ee89bc73cbff3f14e5 (patch)
treef010aed1b4c2735c49a4a9fb9236fd31c5af1a0c /board/freescale/ls2080ardb/ls2080ardb.c
parent8b6558bd4187b4182cc04abf645f1ec18dfcf2b8 (diff)
downloadu-boot-8da1058b98a6ce03b7ab69ee89bc73cbff3f14e5.tar.xz
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>
Diffstat (limited to 'board/freescale/ls2080ardb/ls2080ardb.c')
-rw-r--r--board/freescale/ls2080ardb/ls2080ardb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 282aaf47fb..5e2fc7cc98 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -244,6 +244,10 @@ int board_init(void)
sec_init();
#endif
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+ pci_init();
+#endif
+
return 0;
}