]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: P1010RDB: Compile legacy PCIe routines conditionally
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Fri, 1 May 2020 11:06:27 +0000 (19:06 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 4 May 2020 03:42:37 +0000 (09:12 +0530)
Compile the legacy PCIe initialization reoutines for P1010RDB
boards only when DM_PCI is not enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/p1010rdb/p1010rdb.c

index 65ac47263ec7a77adeea4f308aaf271ec9fbecaa..314646d4ff4fb85d6cbd680b706e6d5a3690e4ab 100644 (file)
@@ -125,7 +125,7 @@ int board_early_init_r(void)
        return 0;
 }
 
-#ifdef CONFIG_PCI
+#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
 void pci_init_board(void)
 {
        fsl_pcie_init_board(0);
@@ -611,7 +611,7 @@ int ft_board_setup(void *blob, bd_t *bd)
        base = env_get_bootm_low();
        size = env_get_bootm_size();
 
-#if defined(CONFIG_PCI)
+#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI)
        FT_FSL_PCI_SETUP;
 #endif