]> git.sur5r.net Git - u-boot/commitdiff
added CONFIG_PCI_CONFIG_HOST_BRIDGE to enable host bridge configuration
authorstroese <stroese>
Thu, 16 Dec 2004 17:48:41 +0000 (17:48 +0000)
committerstroese <stroese>
Thu, 16 Dec 2004 17:48:41 +0000 (17:48 +0000)
drivers/pci.c

index b9dcc5bd651d6a4b6a2d3eb70f8c59d464be972e..c477a89025923bf3b3f9296362b88b294e390004 100644 (file)
@@ -429,8 +429,18 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus)
             dev += PCI_BDF(0,0,1))
        {
                /* 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)
                        continue;