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
This commit is contained in:
parent
76890dde14
commit
d50b43a128
|
@ -1204,6 +1204,13 @@
|
|||
#define PCI_DEVICE_ID_VIA_K8T890CE_4 0x4238
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CE_5 0x5238
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CE_7 0x7238
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_0 0x0351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_1 0x1351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_2 0x2351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_3 0x3351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_4 0x4351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_5 0x5351
|
||||
#define PCI_DEVICE_ID_VIA_K8T890CF_7 0x7351
|
||||
#define PCI_DEVICE_ID_VIA_K8M890CE_0 0x0336
|
||||
#define PCI_DEVICE_ID_VIA_K8M890CE_1 0x1336
|
||||
#define PCI_DEVICE_ID_VIA_K8M890CE_2 0x2336
|
||||
|
|
|
@ -36,6 +36,10 @@ 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,
|
||||
PCI_DEVICE_ID_VIA_K8T890CF_3, 0);
|
||||
|
||||
if (!devfun3)
|
||||
devfun3 = dev_find_device(PCI_VENDOR_ID_VIA,
|
||||
PCI_DEVICE_ID_VIA_K8M890CE_3, 0);
|
||||
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -36,6 +36,9 @@ static void vt8237_cfg(struct device *dev)
|
|||
if (!devfun3)
|
||||
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");
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue