]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc: T208xQDS: Compile the legacy PCIe routines conditionally
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Mon, 22 Apr 2019 13:58:13 +0000 (21:58 +0800)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Thu, 20 Jun 2019 05:14:10 +0000 (10:44 +0530)
Compile the legacy PCIe initialization reoutines only when DM_PCI
is not enabled.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
board/freescale/t208xqds/pci.c

index c761aea0ac09bb3fd53d577e51dd8e83ed163ec4..ef26f14c461c08e6f3be9f91426582106d8fdf4d 100644 (file)
@@ -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