diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-02-17 00:04:59 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-02-18 01:15:15 +0000 |
commit | ff092d416769b4308c8c03a0dca578d5ce22ede6 (patch) | |
tree | b2fb317cb84a5942c8aed58da04a879d2df0a09e | |
parent | 66b4f0181c6a4b2a27bb439a06d97683a8d7a179 (diff) |
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>
-rw-r--r-- | src/soc/amd/picasso/chip.c | 2 | ||||
-rw-r--r-- | src/soc/amd/picasso/root_complex.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/soc/amd/picasso/chip.c b/src/soc/amd/picasso/chip.c index 5bf347b45c..1c8671c01e 100644 --- a/src/soc/amd/picasso/chip.c +++ b/src/soc/amd/picasso/chip.c @@ -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: diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c index 6e98698e43..ee9764cb7d 100644 --- a/src/soc/amd/picasso/root_complex.c +++ b/src/soc/amd/picasso/root_complex.c @@ -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, }; |