]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ls1043ardb: force PCI device enumeration
authorMartin Schiller <ms@dev.tdt.de>
Tue, 23 Nov 2021 06:28:00 +0000 (07:28 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 1 Feb 2022 09:38:07 +0000 (15:08 +0530)
Commit eb1986804d1d ("configs: enable DM_ETH support for LS1043ARDB")
resulted in the PCI bus no longer being implicitly enumerated.

However, this is necessary for the fdt pcie fixups to work.

Therefore, similar to commit 8b6558bd4187 ("board: ls1088ardb:
transition to DM_ETH"), pci_init() is now called in the board_init()
routine when CONFIG_DM_ETH is active.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
CC: Priyanka Jain <priyanka.jain@nxp.com>
CC: Camelia Groza <camelia.groza@nxp.com>
Acked-by: Camelia Groza <camelia.groza@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/ls1043ardb/ls1043ardb.c

index beef26b084bf70356e0e1b003ab6735279e3bba3..1764c9336c0f0371fe4807dd6d97e72386149c5e 100644 (file)
@@ -219,6 +219,10 @@ int board_init(void)
        ppa_init();
 #endif
 
+#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
+       pci_init();
+#endif
+
 #ifdef CONFIG_U_QE
        u_qe_init();
 #endif