diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-10-14 02:36:51 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-10-14 02:36:51 +0000 |
commit | ad1b35a12b724b2083102fce493d4b03937a0cb1 (patch) | |
tree | 8dd0803fdd7c0e0740fd3480d8ba87ef6aab495e /src/northbridge/amd/amdk8 | |
parent | fb3e1edc0003f0f56954ab4f82fe4a290ff9bdb9 (diff) |
- Minor bugfixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1215 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdk8')
-rw-r--r-- | src/northbridge/amd/amdk8/northbridge.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c index 13845c5a70..aed38557d4 100644 --- a/src/northbridge/amd/amdk8/northbridge.c +++ b/src/northbridge/amd/amdk8/northbridge.c @@ -166,7 +166,7 @@ static unsigned int amdk8_scan_chains(device_t dev, unsigned int max) for(link = 0; link < dev->links; link++) { uint32_t link_type; uint32_t busses, config_busses; - unsigned free_reg, config_reg; + unsigned free_reg, config_reg, other_reg; dev->link[link].cap = 0x80 + (link *0x20); do { link_type = pci_read_config32(dev, dev->link[link].cap + 0x18); @@ -455,7 +455,13 @@ static void amdk8_set_resources(device_t dev) unsigned int amdk8_scan_root_bus(device_t root, unsigned int max) { - return pci_scan_bus(&root->link[0], PCI_DEVFN(0x18, 0), 0xff, max); + unsigned reg; + max = pci_scan_bus(&root->link[0], PCI_DEVFN(0x18, 0), 0xff, max); + /* Unmap all of the other pci busses */ + for(reg = 0xe0; reg <= 0xec; reg += 4) { + f1_write_config32(reg, 0); + } + return max; } static struct device_operations northbridge_operations = { |