Skip to content
Snippets Groups Projects
Commit 6bb992ba authored by Stefan Roese's avatar Stefan Roese
Browse files

added CONFIG_PCI_CONFIG_HOST_BRIDGE to enable host bridge configuration

parent a842a6d2
No related branches found
No related tags found
No related merge requests found
...@@ -429,8 +429,18 @@ int pci_hose_scan_bus(struct pci_controller *hose, int bus) ...@@ -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) ) if ( dev == PCI_BDF(hose->first_busno,0,0) ) {
continue; #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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment