diff options
author | Jon Loeliger <jdl@freescale.com> | 2006-06-27 11:08:17 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2006-06-27 11:08:17 -0500 |
commit | 894b773c8678ce68b01c99b02ffad236e470458b (patch) | |
tree | b2354e1daf943e7ab1ae4befcccbb9712281cfd5 /drivers/pci_auto.c | |
parent | 321bbd41f9f8bc58ac76017b7d5dffb67382a99f (diff) | |
parent | bc09cf3c2bfb8d54c659cbb332f79d0950982fd0 (diff) | |
download | u-boot-imx-894b773c8678ce68b01c99b02ffad236e470458b.zip u-boot-imx-894b773c8678ce68b01c99b02ffad236e470458b.tar.gz u-boot-imx-894b773c8678ce68b01c99b02ffad236e470458b.tar.bz2 |
Merge branch 'mpc86xx'
Diffstat (limited to 'drivers/pci_auto.c')
-rw-r--r-- | drivers/pci_auto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci_auto.c b/drivers/pci_auto.c index 15f7432..9e921b2 100644 --- a/drivers/pci_auto.c +++ b/drivers/pci_auto.c @@ -102,7 +102,8 @@ void pciauto_setup_device(struct pci_controller *hose, /* Check the BAR type and set our address mask */ if (bar_response & PCI_BASE_ADDRESS_SPACE) { - bar_size = ~(bar_response & PCI_BASE_ADDRESS_IO_MASK) + 1; + bar_size = ((~(bar_response & PCI_BASE_ADDRESS_IO_MASK)) + & 0xffff) + 1; bar_res = io; DEBUGF("PCI Autoconfig: BAR %d, I/O, size=0x%x, ", bar_nr, bar_size); |