diff options
author | Yinghai Lu <yinghailu@gmail.com> | 2004-11-03 00:47:40 +0000 |
---|---|---|
committer | Yinghai Lu <yinghailu@gmail.com> | 2004-11-03 00:47:40 +0000 |
commit | 4403f6082372d069e3cabe0918d9af5f9c1dccf6 (patch) | |
tree | effad64783ce4ff53b857ad86e62da2f64632925 | |
parent | e507c85fe331e8c24bf4ff4d20c880c9affee9d6 (diff) |
*** empty log message ***
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1736 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/mainboard/amd/quartet/auto.c | 4 | ||||
-rw-r--r-- | src/mainboard/tyan/s2885/auto.c | 4 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/incoherent_ht.c | 14 |
3 files changed, 8 insertions, 14 deletions
diff --git a/src/mainboard/amd/quartet/auto.c b/src/mainboard/amd/quartet/auto.c index fce5df684d..67bc959496 100644 --- a/src/mainboard/amd/quartet/auto.c +++ b/src/mainboard/amd/quartet/auto.c @@ -206,13 +206,9 @@ static void main(void) static const struct ht_chain ht_c[] = { { /* Link 2 of CPU0 */ - .udev = PCI_DEV(0, 0x18, 0), - .upos = 0xc0, .devreg = 0xe0, /* Preset bus num in resource map */ }, { /* Link 1 of CPU1 */ - .udev = PCI_DEV(0, 0x19, 0), - .upos = 0xa0, .devreg = 0xe4, /* Preset bus num in resource map */ }, }; diff --git a/src/mainboard/tyan/s2885/auto.c b/src/mainboard/tyan/s2885/auto.c index b5766c166a..7211429854 100644 --- a/src/mainboard/tyan/s2885/auto.c +++ b/src/mainboard/tyan/s2885/auto.c @@ -180,13 +180,9 @@ static void main(unsigned long bist) #if 1 static const struct ht_chain ht_c[] = { { /* Link 2 of CPU0 */ - .udev = PCI_DEV(0, 0x18, 0), - .upos = 0xc0, .devreg = 0xe0, /* Preset bus num in resource map */ }, { /* Link 0 of CPU0 */ - .udev = PCI_DEV(0, 0x18, 0), - .upos = 0x80, .devreg = 0xe4, /* Preset bus num in resource map */ }, }; diff --git a/src/northbridge/amd/amdk8/incoherent_ht.c b/src/northbridge/amd/amdk8/incoherent_ht.c index d55037c9b7..c8e0770534 100644 --- a/src/northbridge/amd/amdk8/incoherent_ht.c +++ b/src/northbridge/amd/amdk8/incoherent_ht.c @@ -246,8 +246,6 @@ static int ht_setup_chain(device_t udev, unsigned upos) } struct ht_chain { - device_t udev; - unsigned upos; unsigned devreg; }; static int ht_setup_chainx(device_t udev, unsigned upos, unsigned bus) @@ -344,20 +342,24 @@ static int ht_setup_chains(const struct ht_chain *ht_c, int ht_c_num) dword |= (reg & 0xffff0000)>>8; pci_write_config32( PCI_DEV(0, devpos,0), regpos , dword); #if 0 - print_debug("PCI_DEV=(0,0x"); + print_debug("udev=(0,0x"); print_debug_hex8(devpos); print_debug(",0) 0x"); print_debug_hex8(regpos); print_debug("="); print_debug_hex32(dword); - print_debug("\r\n"); #endif /* Make certain the HT bus is not enumerated */ ht_collapse_previous_enumeration(busn); - upos = ht_c[i].upos; - udev = ht_c[i].udev; + upos = ((reg & 0xf00)>>8) * 0x20 + 0x80; + udev = PCI_DEV(0, devpos, 0); +#if 0 + print_debug("\tupos=0x"); + print_debug_hex32(upos); + print_debug("\r\n"); +#endif reset_needed |= ht_setup_chainx(udev,upos,busn ); |