From b3dcb96dc57ade665306e9c03f41353fd11737aa Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Oct 2022 21:54:29 +0200 Subject: soc/amd/*: Hook up IOMMU ops in devicetree This removed the need to maintain a PCI driver. Change-Id: I43def81d615749008fcc9de8734fa2aca752aa9d Signed-off-by: Arthur Heymans Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/68146 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/common/block/iommu/iommu.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/iommu/iommu.c b/src/soc/amd/common/block/iommu/iommu.c index 4f20dd4117..52861f2af7 100644 --- a/src/soc/amd/common/block/iommu/iommu.c +++ b/src/soc/amd/common/block/iommu/iommu.c @@ -2,7 +2,6 @@ #include #include -#include #include static void iommu_read_resources(struct device *dev) @@ -28,7 +27,7 @@ static const char *iommu_acpi_name(const struct device *dev) } #endif -static struct device_operations iommu_ops = { +struct device_operations amd_iommu_ops = { .read_resources = iommu_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, @@ -37,18 +36,3 @@ static struct device_operations iommu_ops = { .acpi_name = iommu_acpi_name, #endif }; - -static const unsigned short pci_device_ids[] = { - PCI_DID_AMD_15H_MODEL_303F_NB_IOMMU, - PCI_DID_AMD_15H_MODEL_707F_NB_IOMMU, - PCI_DID_AMD_17H_MODEL_1020_NB_IOMMU, - PCI_DID_AMD_17H_MODEL_606F_NB_IOMMU, - PCI_DID_AMD_17H_MODEL_A0AF_NB_IOMMU, - 0 -}; - -static const struct pci_driver iommu_driver __pci_driver = { - .ops = &iommu_ops, - .vendor = PCI_VID_AMD, - .devices = pci_device_ids, -}; -- cgit v1.2.3