Browse Source

added CONFIG_PCI_CONFIG_HOST_BRIDGE to enable host bridge configuration

stroese 20 years ago
parent
commit
6bb992ba9d
1 changed files with 12 additions and 2 deletions
  1. 12 2
      drivers/pci.c

+ 12 - 2
drivers/pci.c

@@ -429,8 +429,18 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
 	     dev += PCI_BDF(0,0,1))
 	     dev += PCI_BDF(0,0,1))
 	{
 	{
 		/* Skip our host bridge */
 		/* Skip our host bridge */
-		if ( dev == PCI_BDF(hose->first_busno,0,0) )
-			continue;
+		if ( dev == PCI_BDF(hose->first_busno,0,0) ) {
+#if defined(CONFIG_PCI_CONFIG_HOST_BRIDGE)              /* don't skip host bridge */
+			/*
+			 * Only skip hostbridge configuration if "pciconfighost" is not set
+			 */
+			if (getenv("pciconfighost") == NULL) {
+				continue; /* Skip our host bridge */
+			}
+#else
+			continue; /* Skip our host bridge */
+#endif
+		}
 
 
 		if (PCI_FUNC(dev) && !found_multi)
 		if (PCI_FUNC(dev) && !found_multi)
 			continue;
 			continue;