summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2020-05-01 19:06:27 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2020-05-04 09:12:37 +0530
commit177edd82b2dad578b2df212189ff94d6b9f47b61 (patch)
treeff807f560071bdbeb1efdb53c5ddc999cc3dd2de /board
parentd2d019b7c33d9dfa474cc13f2d8c0bcab7a73a04 (diff)
downloadu-boot-177edd82b2dad578b2df212189ff94d6b9f47b61.tar.gz
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>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/p1010rdb/p1010rdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/p1010rdb/p1010rdb.c b/board/freescale/p1010rdb/p1010rdb.c
index 65ac47263e..314646d4ff 100644
--- a/board/freescale/p1010rdb/p1010rdb.c
+++ b/board/freescale/p1010rdb/p1010rdb.c
@@ -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