diff options
author | Ed Swarthout <Ed.Swarthout@freescale.com> | 2007-07-11 14:52:16 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-07-11 23:43:40 +0200 |
commit | 5dc210dec5bace98a50b6ba905347890091a9bb0 (patch) | |
tree | e84b40d9beacea8cbcfe897f083206b0203e98fc /drivers/pci_auto.c | |
parent | e8b85f3ba4cd8930e0a2fea2100c815d64201765 (diff) | |
download | u-boot-imx-5dc210dec5bace98a50b6ba905347890091a9bb0.zip u-boot-imx-5dc210dec5bace98a50b6ba905347890091a9bb0.tar.gz u-boot-imx-5dc210dec5bace98a50b6ba905347890091a9bb0.tar.bz2 |
Add simple agent/end-point configuration in PCI AutoConfig for PCI_CLASS_PROCESSOR_POWERPC.
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Diffstat (limited to 'drivers/pci_auto.c')
-rw-r--r-- | drivers/pci_auto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci_auto.c b/drivers/pci_auto.c index f16f8d3..a3c609b 100644 --- a/drivers/pci_auto.c +++ b/drivers/pci_auto.c @@ -331,6 +331,12 @@ int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev) pci_hose_read_config_word(hose, dev, PCI_CLASS_DEVICE, &class); switch(class) { + case PCI_CLASS_PROCESSOR_POWERPC: /* an agent or end-point */ + DEBUGF("PCI AutoConfig: Found PowerPC device\n"); + pciauto_setup_device(hose, dev, 6, hose->pci_mem, + hose->pci_prefetch, hose->pci_io); + break; + case PCI_CLASS_BRIDGE_PCI: hose->current_busno++; pciauto_setup_device(hose, dev, 2, hose->pci_mem, hose->pci_prefetch, hose->pci_io); |