From: stroese Date: Thu, 16 Dec 2004 17:48:41 +0000 (+0000) Subject: added CONFIG_PCI_CONFIG_HOST_BRIDGE to enable host bridge configuration X-Git-Tag: LABEL_2006_03_12_0025~436 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bb992ba9d612370c076ab80ba29ac12f97da125;p=u-boot added CONFIG_PCI_CONFIG_HOST_BRIDGE to enable host bridge configuration --- diff --git a/drivers/pci.c b/drivers/pci.c index b9dcc5bd65..c477a89025 100644 --- a/drivers/pci.c +++ b/drivers/pci.c @@ -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;