sb/{amd,broadcom,nvidia}: Make use of generic set_subsystem()
Change-Id: I99b87004ea74a1ad0ec1d6e0c500df11dae4997c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31990 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
b618b04992
commit
0ea04f5853
@ -19,15 +19,8 @@
|
|||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include "amd8111.h"
|
#include "amd8111.h"
|
||||||
|
|
||||||
static void lpci_set_subsystem(struct device *dev, unsigned int vendor,
|
|
||||||
unsigned int device)
|
|
||||||
{
|
|
||||||
pci_write_config32(dev, 0x2c,
|
|
||||||
((device & 0xffff) << 16) | (vendor & 0xffff));
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct pci_operations lops_pci = {
|
static struct pci_operations lops_pci = {
|
||||||
.set_subsystem = lpci_set_subsystem,
|
.set_subsystem = pci_dev_set_subsystem,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device_operations ac97audio_ops = {
|
static struct device_operations ac97audio_ops = {
|
||||||
|
@ -134,15 +134,8 @@ static struct smbus_bus_operations lops_smbus_bus = {
|
|||||||
.write_byte = lsmbus_write_byte,
|
.write_byte = lsmbus_write_byte,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void lpci_set_subsystem(struct device *dev, unsigned vendor,
|
|
||||||
unsigned device)
|
|
||||||
{
|
|
||||||
pci_write_config32(dev, 0x2c,
|
|
||||||
((device & 0xffff) << 16) | (vendor & 0xffff));
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct pci_operations lops_pci = {
|
static struct pci_operations lops_pci = {
|
||||||
.set_subsystem = lpci_set_subsystem,
|
.set_subsystem = pci_dev_set_subsystem,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct device_operations sb_ops = {
|
static struct device_operations sb_ops = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user