diff options
author | Rudolf Marek <r.marek@assembler.cz> | 2011-04-22 20:48:21 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-01-18 23:01:36 +0100 |
commit | 0f1dc4eb5bb9941bdb8ff833ec745e1cfeaa9d28 (patch) | |
tree | 69242236ba5e229fc8222e328611fbe964bdaddf /src/southbridge/via/vt8237r/sata.c | |
parent | de64b8b6dbd7059d9e31ede0892ee2a5d6d45e33 (diff) |
Add subsystem callbacks for VT8237x and VT890 family of chipsets
Change-Id: Id34615f0c229d276d72cdf984cf82ea8cc1a85bb
Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/523
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
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 = { |