diff options
author | Li-Ta Lo <ollie@lanl.gov> | 2004-04-27 17:00:40 +0000 |
---|---|---|
committer | Li-Ta Lo <ollie@lanl.gov> | 2004-04-27 17:00:40 +0000 |
commit | 48d11d557f725ecf89678a1b9df440417b8da225 (patch) | |
tree | fe395522a3a0458ecf7b8ae8b2d68e3681143f20 /src/northbridge/amd | |
parent | 5782d273eb79ed32d344273cf344b1580a936183 (diff) | |
download | coreboot-48d11d557f725ecf89678a1b9df440417b8da225.tar.xz |
Fixed the device on bus 0 problem for IBM/E325. The structure mainboard_ibm_e325_control is
not actually defined in the mainboard.c. It was only declared in chip.h. Why gcc did not tell
me this mistake and why gcc does not complain about define a structure twice ?
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1539 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r-- | src/northbridge/amd/amdk8/northbridge.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c index 26bfdcc6f5..d6b99a6c4e 100644 --- a/src/northbridge/amd/amdk8/northbridge.c +++ b/src/northbridge/amd/amdk8/northbridge.c @@ -488,11 +488,19 @@ static void amdk8_set_resources(device_t dev) unsigned int amdk8_scan_root_bus(device_t root, unsigned int max) { unsigned reg; + + printk_debug("amdk8_scan_root_bus\n"); + /* Unmap all of the HT chains */ for (reg = 0xe0; reg <= 0xec; reg += 4) { + printk_debug("amdk8_scan_root: clearing register %x\n", reg); f1_write_config32(reg, 0); } + + printk_debug("amdk8_scan_root_bus: start scan pci bus\n"); max = pci_scan_bus(&root->link[0], PCI_DEVFN(0x18, 0), 0xff, max); + + printk_debug("amdk8_scan_root_bus: done\n"); return max; } @@ -529,12 +537,11 @@ static void amdk8_enable_resources(struct device *dev) ctrl = pci_read_config16(dev, PCI_BRIDGE_CONTROL); ctrl |= dev->link[0].bridge_ctrl; printk_debug("%s bridge ctrl <- %04x\n", dev_path(dev), ctrl); - printk_err("%s bridge ctrl <- %04x\n", dev_path(dev), ctrl); pci_write_config16(dev, PCI_BRIDGE_CONTROL, ctrl); #if 0 /* let's see what link VGA is on */ - for(link = 0; link < dev->links; link++) { + for (link = 0; link < dev->links; link++) { device_t child; printk_err("Kid %d of k8: bridge ctrl says: 0x%x\n", link, dev->link[link].bridge_ctrl); |