summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci_common.c
Commit message (Collapse)AuthorAgeFilesLines
* dm: pci: Use the correct hose when configuring devicesSimon Glass2015-07-141-0/+6
| | | | | | | | | | | | | Only the PCI controller has access to the PCI region information. Make sure to use the controller (rather than any attached bridges) when configuring devices. This corrects a failure to scan and configure devices when driver model is enabled for PCI. Also add a comment to explain the problem. Signed-off-by: Simon Glass <sjg@chromium.org>
* pci: Move pci_hose_phys_to_bus() to pci_common.cBin Meng2015-06-041-4/+66
| | | | | | | | pci_hose_phys_to_bus() is needed by several drivers. Move it to pci_common.c to avoid a broken build when CONFIG_DM_PCI is on. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
* dm: pci: Move common PCI functions into their own fileSimon Glass2015-04-161-0/+292
Driver model will share many functions with the existing PCI implementation. Move these into their own file to avoid duplication and confusion. Signed-off-by: Simon Glass <sjg@chromium.org>
OpenPOWER on IntegriCloud