summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>2019-08-27 14:03:03 +0300
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2019-08-28 11:17:44 +0300
commitf9c0c79a5a32256276eea39ec7ac2badcd031a23 (patch)
tree7cbffa4f1e621cec0c4c9688e3d71e9830710aca /board
parent57afc23c7dad5665a672eb33d8bf8c96e1deb9ab (diff)
downloadu-boot-f9c0c79a5a32256276eea39ec7ac2badcd031a23.tar.xz
powerpc: T4RDB: 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/t4rdb/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/t4rdb/pci.c b/board/freescale/t4rdb/pci.c
index 4100370e20..7d670e1a2f 100644
--- a/board/freescale/t4rdb/pci.c
+++ b/board/freescale/t4rdb/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