soc/amd/picasso/root_complex: provide ACPI name in PCI device_operations
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I5471f7be41683ef4a14107f38e93339080d01bdd Reviewed-on: https://review.coreboot.org/c/coreboot/+/50820 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		| @@ -35,8 +35,6 @@ static const char *soc_acpi_name(const struct device *dev) | ||||
|  | ||||
| 	if (dev->bus->dev->path.type == DEVICE_PATH_DOMAIN) { | ||||
| 		switch (dev->path.pci.devfn) { | ||||
| 		case GNB_DEVFN: | ||||
| 			return "GNB"; | ||||
| 		case IOMMU_DEVFN: | ||||
| 			return "IOMM"; | ||||
| 		default: | ||||
|   | ||||
| @@ -269,11 +269,17 @@ static void root_complex_fill_ssdt(const struct device *device) | ||||
| 	acipgen_dptci(); | ||||
| } | ||||
|  | ||||
| static const char *gnb_acpi_name(const struct device *dev) | ||||
| { | ||||
| 	return "GNB"; | ||||
| } | ||||
|  | ||||
| static struct device_operations root_complex_operations = { | ||||
| 	.read_resources		= read_resources, | ||||
| 	.set_resources		= noop_set_resources, | ||||
| 	.enable_resources	= pci_dev_enable_resources, | ||||
| 	.init			= root_complex_init, | ||||
| 	.acpi_name		= gnb_acpi_name, | ||||
| 	.acpi_fill_ssdt		= root_complex_fill_ssdt, | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user