瀏覽代碼

ppc4xx: Make PCIE support selectable

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>
Dirk Eibach 16 年之前
父節點
當前提交
59d1bda7f9
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 2
      cpu/ppc4xx/4xx_pci.c
  2. 1 1
      cpu/ppc4xx/4xx_pcie.c

+ 3 - 2
cpu/ppc4xx/4xx_pci.c

@@ -588,8 +588,9 @@ void pci_init_board(void)
 	int busno;
 	int busno;
 
 
 	busno = pci_440_init (&ppc440_hose);
 	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);
 	pcie_setup_hoses(busno + 1);
 #endif
 #endif
 }
 }

+ 1 - 1
cpu/ppc4xx/4xx_pcie.c

@@ -33,7 +33,7 @@
 
 
 #if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) ||	\
 #if (defined(CONFIG_440SPE) || defined(CONFIG_405EX) ||	\
     defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)) && \
-    defined(CONFIG_PCI)
+    defined(CONFIG_PCI) && !defined(CONFIG_PCI_DISABLE_PCIE)
 
 
 #include <asm/4xx_pcie.h>
 #include <asm/4xx_pcie.h>