From 796a8f3dd36a72f6595089bc3d82fd7e5c6f8271 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Oct 2022 22:15:58 +0200 Subject: soc/amd/*: Hook up GPU ops in devicetree This removes the need for a PCI driver. Change-Id: I4b499013a80f5c1bd6ac265a5ae8e635598d9e6c Signed-off-by: Arthur Heymans Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/68148 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Fred Reitberger --- src/soc/amd/common/block/graphics/graphics.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/graphics/graphics.c b/src/soc/amd/common/block/graphics/graphics.c index d39f60a85c..d3def7b23e 100644 --- a/src/soc/amd/common/block/graphics/graphics.c +++ b/src/soc/amd/common/block/graphics/graphics.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include @@ -168,7 +167,7 @@ static void graphics_dev_init(struct device *const dev) pci_dev_init(dev); } -static const struct device_operations graphics_ops = { +const struct device_operations amd_graphics_ops = { .read_resources = pci_dev_read_resources, .set_resources = graphics_set_resources, .enable_resources = pci_dev_enable_resources, @@ -179,19 +178,3 @@ static const struct device_operations graphics_ops = { .acpi_fill_ssdt = graphics_fill_ssdt, .acpi_name = graphics_acpi_name, }; - -static const unsigned short pci_device_ids[] = { - PCI_DID_ATI_FAM17H_MODEL18H_GPU, - PCI_DID_ATI_FAM17H_MODEL60H_GPU, - PCI_DID_ATI_FAM17H_MODEL68H_GPU, - PCI_DID_ATI_FAM17H_MODELA0H_GPU, - PCI_DID_ATI_FAM19H_MODEL51H_GPU_CEZANNE, - PCI_DID_ATI_FAM19H_MODEL51H_GPU_BARCELO, - 0, -}; - -static const struct pci_driver graphics_driver __pci_driver = { - .ops = &graphics_ops, - .vendor = PCI_VID_ATI, - .devices = pci_device_ids, -}; -- cgit v1.2.3