optimize read link bug fixed.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1836 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Yinghai Lu 2005-01-03 20:00:36 +00:00
parent bf0ed60514
commit e089f00ad4
1 changed files with 2 additions and 2 deletions

View File

@ -187,8 +187,8 @@ static void misc_control_init(struct device *dev)
/* This works on an Athlon64 because unimplemented links return 0 */ /* This works on an Athlon64 because unimplemented links return 0 */
reg = 0x98 + (link * 0x20); reg = 0x98 + (link * 0x20);
link_type = pci_read_config32(f0_dev, reg); link_type = pci_read_config32(f0_dev, reg);
if (link_type & LinkConnected) { if ((link_type & 7) == 3) { /* only handle coherent link here please */
cmd &= 0xff << (link *8); cmd &= ~(0xff << (link *8));
/* FIXME this assumes the device on the other side is an AMD device */ /* FIXME this assumes the device on the other side is an AMD device */
cmd |= 0x25 << (link *8); cmd |= 0x25 << (link *8);
} }