summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-10-05 14:36:55 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-10-14 20:18:45 +0000
commitfd2bb9b6bc06515f2a42a8575812271765f73313 (patch)
tree65ef4e7844b8f34a9c1e81f4a5025c3cde2bc7f6 /src/soc/amd/common
parent65d73cc4573a23b4d98e3156cc1c4d0a1b09cb96 (diff)
soc/amd/*: Hook up SMBus ops to devicetree
This removes the need for a PCI driver. Change-Id: Iab75f8c28a247f1370f4425e19cc215678bfa3e5 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68140 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r--src/soc/amd/common/block/smbus/sm.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/soc/amd/common/block/smbus/sm.c b/src/soc/amd/common/block/smbus/sm.c
index 801a1543b4..9ab31f204d 100644
--- a/src/soc/amd/common/block/smbus/sm.c
+++ b/src/soc/amd/common/block/smbus/sm.c
@@ -3,7 +3,6 @@
#include <amdblocks/acpimmio.h>
#include <device/device.h>
#include <device/pci.h>
-#include <device/pci_ids.h>
#include <device/smbus.h>
#include <device/smbus_host.h>
@@ -64,7 +63,7 @@ static const char *smbus_acpi_name(const struct device *dev)
}
#endif
-static struct device_operations smbus_ops = {
+struct device_operations amd_smbus_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.enable_resources = pci_dev_enable_resources,
@@ -75,10 +74,3 @@ static struct device_operations smbus_ops = {
.acpi_name = smbus_acpi_name,
#endif
};
-
-static const struct pci_driver smbus_driver __pci_driver = {
- .ops = &smbus_ops,
- .vendor = PCI_VID_AMD,
- /* PCI device ID is used on all integrated FCHs except Family 16h Models 00h-3Fh */
- .device = PCI_DID_AMD_CZ_SMBUS,
-};