diff options
Diffstat (limited to 'src/southbridge/via/vt8237r/sata.c')
-rw-r--r-- | src/southbridge/via/vt8237r/sata.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/southbridge/via/vt8237r/sata.c b/src/southbridge/via/vt8237r/sata.c index 777d605a6b..2f07e692fb 100644 --- a/src/southbridge/via/vt8237r/sata.c +++ b/src/southbridge/via/vt8237r/sata.c @@ -95,13 +95,24 @@ static void sata_ii_init(struct device *dev) } } + +static void vt8237_set_subsystem(device_t dev, unsigned vendor, unsigned device) +{ + pci_write_config16(dev, 0xd4, vendor); + pci_write_config16(dev, 0xd6, device); +} + +static struct pci_operations lops_pci = { + .set_subsystem = vt8237_set_subsystem, +}; + static const struct device_operations sata_i_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = sata_i_init, .enable = 0, - .ops_pci = 0, + .ops_pci = &lops_pci, }; static const struct device_operations sata_ii_ops = { @@ -110,7 +121,7 @@ static const struct device_operations sata_ii_ops = { .enable_resources = pci_dev_enable_resources, .init = sata_ii_init, .enable = 0, - .ops_pci = 0, + .ops_pci = &lops_pci, }; static const struct pci_driver northbridge_driver_ii __pci_driver = { |