board: ls1046ardb: force PCI device enumeration
PATCH 1/1 board: ls1046ardb: force PCI device enumeration
Commit 045ecf899252 ("configs: enable DM_ETH support for LS1046ARDB") 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.
--- board/freescale/ls1046ardb/ls1046ardb.c | 4 ++++ 1 file changed, 4 insertions(+)
board/freescale/ls1046ardb/ls1046ardb.c +4 -0
@@ -93,6 +93,10 @@ int board_init(void)ppa_init ();#endif +#if !defined(CONFIG_SYS_EARLY_PCI_INIT ) && defined(CONFIG_DM_ETH ) +pci_init (); +#endif +/* invert AQR105 IRQ pins polarity */ out_be32 (&scfg->intpcr,AQR105_IRQ_MASK );
Signature · 1 line
2.20.1
Quoted 28 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Martin Schiller
Sent: Wednesday, November 17, 2021 13:59
To: [email protected]
Cc: Martin Schiller <[email protected]>; Priyanka Jain <[email protected]>
Subject: [PATCH] board: ls1046ardb: force PCI device enumerationCommit
045ecf899252("configs: enableDM_ETHsupport for LS1046ARDB") 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 toDM_ETH"),pci_init()is now called in theboard_init()routine whenCONFIG_DM_ETHis active.Signed-off-by Martin Schiller <[email protected]>CC Priyanka Jain <[email protected]>--- board/freescale/ls1046ardb/ls1046ardb.c | 4 ++++ 1 file changed, 4 insertions(+)board/freescale/ls1046ardb/ls1046ardb.c +0
-0
board/freescale/ls1046ardb/ls1046ardb.c int board_init(void) · line 102
Quoted 10 lines
board/freescale/ls1046ardb/ls1046ardb.c +4
-0@@ -93,6 +93,10 @@ int board_init(void)ppa_init ();#endif +#if !defined(CONFIG_SYS_EARLY_PCI_INIT ) && defined(CONFIG_DM_ETH ) +pci_init (); +#endif +/* invert AQR105 IRQ pins polarity */ out_be32 (&scfg->intpcr,AQR105_IRQ_MASK );
Hi
Thank you for the patch. A very similar fix is needed for the ls1043ardb board. Are you interested to send a patch for that as well?
Quoted 41 lines · Camelia Alexandra Groza (OSS)
Quoted 28 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Martin Schiller
Sent: Wednesday, November 17, 2021 13:59
To: [email protected]
Cc: Martin Schiller <[email protected]>; Priyanka Jain <[email protected]>
Subject: [PATCH] board: ls1046ardb: force PCI device enumerationCommit
045ecf899252("configs: enableDM_ETHsupport for LS1046ARDB") 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 toDM_ETH"),pci_init()is now called in theboard_init()routine whenCONFIG_DM_ETHis active.Signed-off-by Martin Schiller <[email protected]>CC Priyanka Jain <[email protected]>--- board/freescale/ls1046ardb/ls1046ardb.c | 4 ++++ 1 file changed, 4 insertions(+)board/freescale/ls1046ardb/ls1046ardb.c +0
-0board/freescale/ls1046ardb/ls1046ardb.c int board_init(void) · line 102
Quoted 10 lines
board/freescale/ls1046ardb/ls1046ardb.c +4
-0@@ -93,6 +93,10 @@ int board_init(void)ppa_init ();#endif +#if !defined(CONFIG_SYS_EARLY_PCI_INIT ) && defined(CONFIG_DM_ETH ) +pci_init (); +#endif +/* invert AQR105 IRQ pins polarity */ out_be32 (&scfg->intpcr,AQR105_IRQ_MASK );Hi
Quoted 3 lines
Thank you for the patch. A very similar fix is needed for the ls1043ardb board. Are you interested to send a patch for that as well?
Hi
Yes, I can do that. But I can't test it due to lack of hardware.
Quoted 1 line
Acked-by Camelia Groza <[email protected]>
Priyanka Jain (OSS)
Reviewed-by Priyanka JainQuoted 53 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Camelia Alexandra Groza (OSS)
Sent: Monday, November 22, 2021 10:01 PM
To: Martin Schiller <[email protected]>; [email protected]
Cc: Priyanka Jain <[email protected]>
Subject: RE: [PATCH] board: ls1046ardb: force PCI device enumerationQuoted 30 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Martin Schiller
Sent: Wednesday, November 17, 2021 13:59
To: [email protected]
Cc: Martin Schiller <[email protected]>; Priyanka Jain <[email protected]>
Subject: [PATCH] board: ls1046ardb: force PCI device enumerationCommit
045ecf899252("configs: enableDM_ETHsupport for LS1046ARDB") 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 toDM_ETH"),pci_init()is now called in theboard_init()routine whenCONFIG_DM_ETHis active.Signed-off-by Martin Schiller <[email protected]>CC Priyanka Jain <[email protected]>--- board/freescale/ls1046ardb/ls1046ardb.c | 4 ++++ 1 file changed, 4 insertions(+)board/freescale/ls1046ardb/ls1046ardb.c +0
-0board/freescale/ls1046ardb/ls1046ardb.c int board_init(void) · line 102
Quoted 10 lines
board/freescale/ls1046ardb/ls1046ardb.c +4
-0@@ -93,6 +93,10 @@ int board_init(void)ppa_init ();#endif +#if !defined(CONFIG_SYS_EARLY_PCI_INIT ) && defined(CONFIG_DM_ETH ) +pci_init (); +#endif +/* invert AQR105 IRQ pins polarity */ out_be32 (&scfg->intpcr,AQR105_IRQ_MASK );Hi
Quoted 4 lines
Thank you for the patch. A very similar fix is needed for the ls1043ardb board. Are you interested to send a patch for that as well?
Acked-by Camelia Groza <[email protected]>