diff mbox series

[U-Boot,PATCHv2,04/47] powerpc: T4RDB: Compile legacy PCIe routines conditionally

Message ID 20190827110440.11523-5-Zhiqiang.Hou@nxp.com
State Accepted
Commit f9c0c79a5a32256276eea39ec7ac2badcd031a23
Delegated to: Prabhakar Kushwaha
Headers show
Series powerpc: Enable PCIe DM drvier for some platforms | expand

Commit Message

Z.Q. Hou Aug. 27, 2019, 11:03 a.m. UTC
From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Compile the legacy PCIe initialization reoutines only when
DM_PCI is not enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---
V2:
 - Rebased the patch.

 board/freescale/t4rdb/pci.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/board/freescale/t4rdb/pci.c b/board/freescale/t4rdb/pci.c
index 4100370e20..7d670e1a2f 100644
--- a/board/freescale/t4rdb/pci.c
+++ b/board/freescale/t4rdb/pci.c
@@ -11,6 +11,7 @@ 
 #include <fdt_support.h>
 #include <asm/fsl_serdes.h>
 
+#if !defined(CONFIG_DM_PCI)
 void pci_init_board(void)
 {
 	fsl_pcie_init_board(0);
@@ -20,3 +21,4 @@  void pci_of_setup(void *blob, bd_t *bd)
 {
 	FT_FSL_PCI_SETUP;
 }
+#endif