mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02: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:
committed by
Kumar Gala
parent
9660c5de74
commit
96d6160324
@@ -91,6 +91,9 @@ int fsl_setup_hose(struct pci_controller *hose, unsigned long addr)
|
||||
{
|
||||
volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) addr;
|
||||
|
||||
/* Reset hose to make sure its in a clean state */
|
||||
memset(hose, 0, sizeof(struct pci_controller));
|
||||
|
||||
pci_setup_indirect(hose, (u32)&pci->cfg_addr, (u32)&pci->cfg_data);
|
||||
|
||||
return fsl_is_pci_agent(hose);
|
||||
|
Reference in New Issue
Block a user