summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/rs690/ht.c
diff options
context:
space:
mode:
authorJosef Kellermann <seppk@arcor.de>2011-02-03 09:29:57 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2011-02-03 09:29:57 +0000
commita96b218c9c19c97476cc846715f5d8b204f96bc0 (patch)
treed94b55c74cfe942c0be3401a478e367f1c15ea2a /src/southbridge/amd/rs690/ht.c
parent87fcffac82a4e3b24e152678e73cd7e6c2f1dcad (diff)
downloadcoreboot-a96b218c9c19c97476cc846715f5d8b204f96bc0.tar.xz
Fix subvendor/subdevice programming on RS690
Some RS690 devices require subvendor/subdevice IDs to be programmed at locations other than default 0x2c. Signed-off-by: Josef Kellermann <seppk@arcor.de> Acked-by: Patrick Georgi <patrick.georgi@secunet.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6330 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/amd/rs690/ht.c')
-rw-r--r--src/southbridge/amd/rs690/ht.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/southbridge/amd/rs690/ht.c b/src/southbridge/amd/rs690/ht.c
index 26824b5322..67a471626c 100644
--- a/src/southbridge/amd/rs690/ht.c
+++ b/src/southbridge/amd/rs690/ht.c
@@ -70,8 +70,13 @@ static void pcie_init(struct device *dev)
pci_write_config32(dev, 0x4C, dword);
}
+static void ht_dev_set_subsystem(struct device *dev, unsigned vendor, unsigned device)
+{
+ pci_write_config32(dev, 0x50, ((device & 0xffff) << 16) | (vendor & 0xffff));
+}
+
static struct pci_operations lops_pci = {
- .set_subsystem = pci_dev_set_subsystem,
+ .set_subsystem = ht_dev_set_subsystem,
};
static struct device_operations ht_ops = {