summaryrefslogtreecommitdiff
path: root/drivers/pci_auto.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-05-05 19:12:41 (GMT)
committerWolfgang Denk <wd@denx.de>2007-05-05 19:12:41 (GMT)
commit2be1bab6a7dc1d1c9ee1e3ca53ff9f011136f1fe (patch)
tree1ead443be05f9bf7ff950b789fdb0aa45dbb2738 /drivers/pci_auto.c
parent2f15278c2eb911c668b4fe562130b78cf554d139 (diff)
parent2f550ab976405300f5b07bf2890800840d0aa05f (diff)
downloadu-boot-fsl-qoriq-2be1bab6a7dc1d1c9ee1e3ca53ff9f011136f1fe.tar.xz
Merge with git://www.denx.de/git/u-boot-testing
Diffstat (limited to 'drivers/pci_auto.c')
-rw-r--r--drivers/pci_auto.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pci_auto.c b/drivers/pci_auto.c
index 9691675..f170c2d 100644
--- a/drivers/pci_auto.c
+++ b/drivers/pci_auto.c
@@ -34,7 +34,12 @@
void pciauto_region_init(struct pci_region* res)
{
- res->bus_lower = res->bus_start;
+ /*
+ * Avoid allocating PCI resources from address 0 -- this is illegal
+ * according to PCI 2.1 and moreover, this is known to cause Linux IDE
+ * drivers to fail. Use a reasonable starting value of 0x1000 instead.
+ */
+ res->bus_lower = res->bus_start ? res->bus_start : 0x1000;
}
void pciauto_region_align(struct pci_region *res, unsigned long size)