]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/natsemi.c
* Patch by Daniel Engström, 18 Nov 2002:
[karo-tx-uboot.git] / drivers / natsemi.c
index 5a8c5b4ecc1d2d815683c6cd78464e23bcfd936d..0bed04dbbdf7760719e2fea7b2f2aacebfc12454 100644 (file)
@@ -306,8 +306,8 @@ natsemi_initialize(bd_t * bis)
                        break;
                }
 
-               pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase);
-               iobase &= ~0x3; /* 1: unused and 0:I/O Space Indicator */
+               pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase);
+               iobase &= ~0xF; /* Masked out the low bits that are addresses. */
 
                pci_write_config_dword(devno, PCI_COMMAND,
                                       PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);