powerpc: P1010RDB: Compile legacy PCIe routines conditionally

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>
This commit is contained in:
Hou Zhiqiang 2020-05-01 19:06:27 +08:00 committed by Priyanka Jain
parent d2d019b7c3
commit 177edd82b2

View File

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