]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: p1_p2_rdb: Compile legacy PCIe routines conditionally
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 27 Aug 2019 11:03:58 +0000 (11:03 +0000)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 28 Aug 2019 08:17:45 +0000 (13:47 +0530)
Compile the legacy PCIe initialization routines for P1020,
P1021, P1024, P1025 and P2020 RDB boards 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>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

index a04a73528f8d4629c1f783d91c4de6062895be4e..3649f16598f06c469240e0d5290f2ef65a4bd53b 100644 (file)
@@ -278,7 +278,7 @@ int checkboard(void)
        return 0;
 }
 
-#ifdef CONFIG_PCI
+#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
 void pci_init_board(void)
 {
        fsl_pcie_init_board(0);
@@ -444,7 +444,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 
        fdt_fixup_memory(blob, (u64)base, (u64)size);
 
+#if !defined(CONFIG_DM_PCI)
        FT_FSL_PCI_SETUP;
+#endif
 
 #ifdef CONFIG_QE
        do_fixup_by_compat(blob, "fsl,qe", "status", "okay",