]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: Make PCIE support selectable
authorDirk Eibach <eibach@gdsys.de>
Tue, 3 Feb 2009 14:15:21 +0000 (15:15 +0100)
committerStefan Roese <sr@denx.de>
Fri, 6 Feb 2009 10:06:19 +0000 (11:06 +0100)
On some platforms PCIE support is not required, but would be included
because the cpu supports it. To reduce fooprint it is now configurable
via CONFIG_PCI_DISABLE_PCIE.

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/4xx_pci.c
cpu/ppc4xx/4xx_pcie.c

index e8871fc4599e3463df45ac57650d9389bef0388a..2e75886a6b02503e5fdbb06c3d8aa956b9bb78df 100644 (file)
@@ -588,8 +588,9 @@ void pci_init_board(void)
        int busno;
 
        busno = pci_440_init (&ppc440_hose);
-#if defined(CONFIG_440SPE) || \
-    defined(CONFIG_460EX) || defined(CONFIG_460GT)
+#if (defined(CONFIG_440SPE) || \
+    defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
+    !defined(CONFIG_PCI_DISABLE_PCIE)
        pcie_setup_hoses(busno + 1);
 #endif
 }
index fd40d8abda8d8e76e6f662ff02cd97354b162c2d..58d96bb5af3c035cea802ec86f40a2b02b447775 100644 (file)
@@ -33,7 +33,7 @@
 
 #if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) ||        \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
-    defined(CONFIG_PCI)
+    defined(CONFIG_PCI) && !defined(CONFIG_PCI_DISABLE_PCIE)
 
 #include <asm/4xx_pcie.h>