diff options
author | Wolfgang Denk <wd@denx.de> | 2010-03-09 14:27:25 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-03-21 17:58:07 +0100 |
commit | 252b404d954f91499a4477a3e1064eb237ce5a1c (patch) | |
tree | 8ce25e7383cfc2b1c2abd48acd4acf75b49c2dd9 /drivers/pci/pci.c | |
parent | 9d90a93d367272ee65550c0c9f82615cec967c70 (diff) | |
download | u-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/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
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); |