aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHou Zhiqiang2019-08-27 11:03:41 +0000
committerPrabhakar Kushwaha2019-08-28 13:47:45 +0530
commit6aefcc8cc79e1c5d3b66b29576d456c30435b8d7 (patch)
tree6bc6b6e02f5b04d6ed6e0e352f1de25ff3fd2a89 /board
parent50801d4eb0285d268ff64061a125de643956ba79 (diff)
powerpc: T104xRDB: Compile legacy PCIe routines conditionally
Compile the legacy PCIe initialization routines only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/t104xrdb/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/t104xrdb/pci.c b/board/freescale/t104xrdb/pci.c
index 9fd66594f4a..6b666ba2d24 100644
--- a/board/freescale/t104xrdb/pci.c
+++ b/board/freescale/t104xrdb/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