summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-03-09 14:27:25 +0100
committerWolfgang Denk <wd@denx.de>2010-03-21 17:58:07 +0100
commit252b404d954f91499a4477a3e1064eb237ce5a1c (patch)
tree8ce25e7383cfc2b1c2abd48acd4acf75b49c2dd9 /drivers
parent9d90a93d367272ee65550c0c9f82615cec967c70 (diff)
downloadu-boot-imx-252b404d954f91499a4477a3e1064eb237ce5a1c.zip
u-boot-imx-252b404d954f91499a4477a3e1064eb237ce5a1c.tar.gz
u-boot-imx-252b404d954f91499a4477a3e1064eb237ce5a1c.tar.bz2
Fix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device()
Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp> Signed-off-by: <wd@denx.de> Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index d6d2d6e..cd64a87 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -388,7 +388,7 @@ int pci_hose_config_device(struct pci_controller *hose,
pci_hose_write_config_dword (hose, dev, PCI_COMMAND, 0);
- for (bar = PCI_BASE_ADDRESS_0; bar < PCI_BASE_ADDRESS_5; bar += 4) {
+ for (bar = PCI_BASE_ADDRESS_0; bar <= PCI_BASE_ADDRESS_5; bar += 4) {
pci_hose_write_config_dword (hose, dev, bar, 0xffffffff);
pci_hose_read_config_dword (hose, dev, bar, &bar_response);