uboot-layerscape: bump to LSDK-21.08
[openwrt/staging/stintel.git] / package / boot / uboot-layerscape / patches / 0001-board-ls1046ardb-force-PCI-device-enumeration.patch
1 From 089b90b11008ec95a56da12e31d11e3f31a9bb26 Mon Sep 17 00:00:00 2001
2 From: Martin Schiller <ms@dev.tdt.de>
3 Date: Wed, 17 Nov 2021 07:29:55 +0100
4 Subject: [PATCH] board: ls1046ardb: force PCI device enumeration
5
6 Commit 045ecf899252 ("configs: enable DM_ETH support for LS1046ARDB")
7 resulted in the PCI bus no longer being implicitly enumerated.
8
9 However, this is necessary for the fdt pcie fixups to work.
10
11 Therefore, similar to commit 8b6558bd4187 ("board: ls1088ardb:
12 transition to DM_ETH"), pci_init() is now called in the board_init()
13 routine when CONFIG_DM_ETH is active.
14
15 Signed-off-by: Martin Schiller <ms@dev.tdt.de>
16 CC: Priyanka Jain <priyanka.jain@nxp.com>
17 ---
18 board/freescale/ls1046ardb/ls1046ardb.c | 4 ++++
19 1 file changed, 4 insertions(+)
20
21 --- a/board/freescale/ls1046ardb/ls1046ardb.c
22 +++ b/board/freescale/ls1046ardb/ls1046ardb.c
23 @@ -88,6 +88,10 @@ int board_init(void)
24 ppa_init();
25 #endif
26
27 +#if !defined(CONFIG_SYS_EARLY_PCI_INIT) && defined(CONFIG_DM_ETH)
28 + pci_init();
29 +#endif
30 +
31 /* invert AQR105 IRQ pins polarity */
32 out_be32(&scfg->intpcr, AQR105_IRQ_MASK);
33