summaryrefslogtreecommitdiff
path: root/src/southbridge/broadcom/bcm5785/lpc.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-20 09:46:32 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-03-22 12:21:05 +0000
commitd096a64bcd8383e074809ab62b08d270ab688456 (patch)
tree2756c26360db62daa75ff6ee8041c489e2a69ffb /src/southbridge/broadcom/bcm5785/lpc.c
parent321bce4a3f472cfcd1f9af12e0204f6648ce499e (diff)
sb/broadcom/bcm5785: Consolidate PCI set_subsystem()
This one uses vendor-specific register for the write. Change-Id: Ie36a87314054d00daed6a63b495bd5f5eabef66e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31989 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Diffstat (limited to 'src/southbridge/broadcom/bcm5785/lpc.c')
-rw-r--r--src/southbridge/broadcom/bcm5785/lpc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/southbridge/broadcom/bcm5785/lpc.c b/src/southbridge/broadcom/bcm5785/lpc.c
index a091e9ff54..17bc8bce88 100644
--- a/src/southbridge/broadcom/bcm5785/lpc.c
+++ b/src/southbridge/broadcom/bcm5785/lpc.c
@@ -115,15 +115,8 @@ static void bcm5785_lpc_enable_resources(struct device *dev)
bcm5785_lpc_enable_childrens_resources(dev);
}
-static void lpci_set_subsystem(struct device *dev, unsigned vendor,
- unsigned device)
-{
- pci_write_config32(dev, 0x40,
- ((device & 0xffff) << 16) | (vendor & 0xffff));
-}
-
static struct pci_operations lops_pci = {
- .set_subsystem = lpci_set_subsystem,
+ .set_subsystem = bcm5785_set_subsystem,
};
static struct device_operations lpc_ops = {