summaryrefslogtreecommitdiff
path: root/src/southbridge/via
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-11-02 20:54:37 +0000
committerRudolf Marek <r.marek@assembler.cz>2010-11-02 20:54:37 +0000
commitd50b43a1289a7ffb9c206a2c39b7568f5b1c3bf2 (patch)
tree3e3846b1e478e86bd6d3dc5ad6c3c99fc90af417 /src/southbridge/via
parent76890dde1428741a7c91732b04cc3c95ada9c321 (diff)
downloadcoreboot-d50b43a1289a7ffb9c206a2c39b7568f5b1c3bf2.tar.xz
This adds pci device ids and pci_driver structs for the K8T890 CF
variant. It also adds additional dev_find_device calls in k8t890_ctrl.c for subfunctions 3 and 7. Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de> Acked-by: Rudolf Marek <r.marek@assembler.cz> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6012 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/via')
-rw-r--r--src/southbridge/via/k8t890/k8t890_ctrl.c14
-rw-r--r--src/southbridge/via/k8t890/k8t890_dram.c6
-rw-r--r--src/southbridge/via/k8t890/k8t890_error.c6
-rw-r--r--src/southbridge/via/k8t890/k8t890_host.c6
-rw-r--r--src/southbridge/via/k8t890/k8t890_traf_ctrl.c6
-rw-r--r--src/southbridge/via/vt8237r/vt8237_ctrl.c6
6 files changed, 42 insertions, 2 deletions
diff --git a/src/southbridge/via/k8t890/k8t890_ctrl.c b/src/southbridge/via/k8t890/k8t890_ctrl.c
index 48aa739257..bb3cc02217 100644
--- a/src/southbridge/via/k8t890/k8t890_ctrl.c
+++ b/src/southbridge/via/k8t890/k8t890_ctrl.c
@@ -36,8 +36,12 @@ static void vt8237r_cfg(struct device *dev, struct device *devsb)
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8T890CE_3, 0);
- if (!devfun3)
- devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
+ if (!devfun3)
+ devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
+ PCI_DEVICE_ID_VIA_K8T890CF_3, 0);
+
+ if (!devfun3)
+ devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8M890CE_3, 0);
pci_write_config8(dev, 0x70, 0xc2);
@@ -175,6 +179,12 @@ static const struct pci_driver northbridge_driver_t __pci_driver = {
.device = PCI_DEVICE_ID_VIA_K8T890CE_7,
};
+static const struct pci_driver northbridge_driver_tcf __pci_driver = {
+ .ops = &ctrl_ops,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T890CF_7,
+};
+
static const struct pci_driver northbridge_driver_m __pci_driver = {
.ops = &ctrl_ops,
.vendor = PCI_VENDOR_ID_VIA,
diff --git a/src/southbridge/via/k8t890/k8t890_dram.c b/src/southbridge/via/k8t890/k8t890_dram.c
index 42c7881e82..6c52fb1d02 100644
--- a/src/southbridge/via/k8t890/k8t890_dram.c
+++ b/src/southbridge/via/k8t890/k8t890_dram.c
@@ -170,6 +170,12 @@ static const struct pci_driver northbridge_driver_t __pci_driver = {
.device = PCI_DEVICE_ID_VIA_K8T890CE_3,
};
+static const struct pci_driver northbridge_driver_tcf __pci_driver = {
+ .ops = &dram_ops_t,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T890CF_3,
+};
+
static const struct pci_driver northbridge_driver_m __pci_driver = {
.ops = &dram_ops_m,
.vendor = PCI_VENDOR_ID_VIA,
diff --git a/src/southbridge/via/k8t890/k8t890_error.c b/src/southbridge/via/k8t890/k8t890_error.c
index b334f2f7cd..a9b10d56bc 100644
--- a/src/southbridge/via/k8t890/k8t890_error.c
+++ b/src/southbridge/via/k8t890/k8t890_error.c
@@ -48,6 +48,12 @@ static const struct pci_driver northbridge_driver_t __pci_driver = {
.device = PCI_DEVICE_ID_VIA_K8T890CE_1,
};
+static const struct pci_driver northbridge_driver_tcf __pci_driver = {
+ .ops = &error_ops,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T890CF_1,
+};
+
static const struct pci_driver northbridge_driver_m __pci_driver = {
.ops = &error_ops,
.vendor = PCI_VENDOR_ID_VIA,
diff --git a/src/southbridge/via/k8t890/k8t890_host.c b/src/southbridge/via/k8t890/k8t890_host.c
index f0e2b06c8d..9a0118c778 100644
--- a/src/southbridge/via/k8t890/k8t890_host.c
+++ b/src/southbridge/via/k8t890/k8t890_host.c
@@ -76,6 +76,12 @@ static const struct pci_driver northbridge_driver_t __pci_driver = {
.device = PCI_DEVICE_ID_VIA_K8T890CE_0,
};
+static const struct pci_driver northbridge_driver_tcf __pci_driver = {
+ .ops = &host_ops_t,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T890CF_0,
+};
+
static const struct pci_driver northbridge_driver_m __pci_driver = {
.ops = &host_ops_m,
.vendor = PCI_VENDOR_ID_VIA,
diff --git a/src/southbridge/via/k8t890/k8t890_traf_ctrl.c b/src/southbridge/via/k8t890/k8t890_traf_ctrl.c
index 8d964163ea..859955c428 100644
--- a/src/southbridge/via/k8t890/k8t890_traf_ctrl.c
+++ b/src/southbridge/via/k8t890/k8t890_traf_ctrl.c
@@ -144,6 +144,12 @@ static const struct pci_driver northbridge_driver_t __pci_driver = {
.device = PCI_DEVICE_ID_VIA_K8T890CE_5,
};
+static const struct pci_driver northbridge_driver_tcf __pci_driver = {
+ .ops = &traf_ctrl_ops_t,
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_K8T890CF_5,
+};
+
static const struct pci_driver northbridge_driver_m __pci_driver = {
.ops = &traf_ctrl_ops_m,
.vendor = PCI_VENDOR_ID_VIA,
diff --git a/src/southbridge/via/vt8237r/vt8237_ctrl.c b/src/southbridge/via/vt8237r/vt8237_ctrl.c
index 08c9c54754..300cadec94 100644
--- a/src/southbridge/via/vt8237r/vt8237_ctrl.c
+++ b/src/southbridge/via/vt8237r/vt8237_ctrl.c
@@ -37,6 +37,9 @@ static void vt8237_cfg(struct device *dev)
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8M890CE_3, 0);
if (!devfun3)
+ devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
+ PCI_DEVICE_ID_VIA_K8T890CF_3, 0);
+ if (!devfun3)
die("Unknown NB");
/* CPU to PCI Flow Control 1 & 2, just fill in recommended. */
@@ -109,6 +112,9 @@ static void vt8237s_vlink_init(struct device *dev)
if (!devfun7)
devfun7 = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_K8M890CE_7, 0);
+ if (!devfun7)
+ devfun7 = dev_find_device(PCI_VENDOR_ID_VIA,
+ PCI_DEVICE_ID_VIA_K8T890CF_7, 0);
/* No pairing NB was found. */
if (!devfun7)
return;