From: Hou Zhiqiang Date: Tue, 27 Aug 2019 11:05:16 +0000 (+0000) Subject: powerpc: MPC85xxCDS: Disable legacy PCI fixup when DM_PCI is selected X-Git-Tag: v2019.10-rc4~29^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70388039c3b9c2d2f397610ec920d9a13aa826e4;p=platform%2Fkernel%2Fu-boot.git powerpc: MPC85xxCDS: Disable legacy PCI fixup when DM_PCI is selected Disable legacy PCI and PCIe fixup when CONFIG_DM_PCI is selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Bin Meng Reviewed-by: Prabhakar Kushwaha --- diff --git a/board/freescale/common/cds_pci_ft.c b/board/freescale/common/cds_pci_ft.c index 3ff2fa4..fb2e5c7 100644 --- a/board/freescale/common/cds_pci_ft.c +++ b/board/freescale/common/cds_pci_ft.c @@ -9,6 +9,7 @@ #include "cadmus.h" #if defined(CONFIG_OF_BOARD_SETUP) +#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI) static void cds_pci_fixup(void *blob) { int node; @@ -61,11 +62,12 @@ static void cds_pci_fixup(void *blob) } } } +#endif int ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); -#ifdef CONFIG_PCI +#if defined(CONFIG_PCI) && !defined(CONFIG_DM_PCI) ft_pci_setup(blob, bd); cds_pci_fixup(blob); #endif