aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch')
-rw-r--r--package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch b/package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch
new file mode 100644
index 0000000000..d38102a13c
--- /dev/null
+++ b/package/boot/uboot-layerscape/patches/0002-board-ls1043ardb-force-PCI-device-enumeration.patch
@@ -0,0 +1,34 @@
+From 64d2dffa8b51c1beb7e472690dcac965ac0f7ac4 Mon Sep 17 00:00:00 2001
+From: Martin Schiller <ms@dev.tdt.de>
+Date: Tue, 23 Nov 2021 07:24:19 +0100
+Subject: [PATCH] board: ls1043ardb: force PCI device enumeration
+
+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>
+---
+ board/freescale/ls1043ardb/ls1043ardb.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/board/freescale/ls1043ardb/ls1043ardb.c
++++ b/board/freescale/ls1043ardb/ls1043ardb.c
+@@ -214,6 +214,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