mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
pci: Add ability to re-enumerate PCI buses
Add a new 'pci enum' command which re-enumerates the PCI buses. This command is enabled via the CONFIG_CMD_PCI_ENUM define and can be useful in boards with FPGAs connected via PCI/PCIe, boards that support PCI hot-plugging, or during PCI debug. Also enable the 'pci enum' command for X-ES's Freescale-based boards. Signed-off-by: John Schmoller <jschmoller@xes-inc.com> Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Acked-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
9660c5de74
commit
96d6160324
6 changed files with 22 additions and 1 deletions
|
@ -139,7 +139,7 @@ void *pci_map_bar(pci_dev_t pdev, int bar, int flags)
|
|||
*
|
||||
*/
|
||||
|
||||
static struct pci_controller* hose_head = NULL;
|
||||
static struct pci_controller* hose_head;
|
||||
|
||||
void pci_register_hose(struct pci_controller* hose)
|
||||
{
|
||||
|
@ -640,6 +640,8 @@ void pci_init(void)
|
|||
}
|
||||
#endif /* CONFIG_PCI_BOOTDELAY */
|
||||
|
||||
hose_head = NULL;
|
||||
|
||||
/* now call board specific pci_init()... */
|
||||
pci_init_board();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue