diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-10-12 16:42:00 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-13 19:41:46 +0000 |
commit | 6e1fb6ae9f0cc2b37d2cbd127e0723789b0f7f3e (patch) | |
tree | 7d85a0b56b5a50be7ab2939a46236660b68d665f /src/soc/amd/morgana/root_complex.c | |
parent | 6a5d770536758c75f05d53aed9302f21843c93a6 (diff) |
soc/amd/morgana: Use devicetree ops over pci driver
Morgana is a SoC so it makes sense to statically use ops instead of
matching them to PCI DID/VID at runtime.
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I67362ae4a32bc9b1dd19ee5e4caf42db8f5dd1bd
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68311
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd/morgana/root_complex.c')
-rw-r--r-- | src/soc/amd/morgana/root_complex.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/soc/amd/morgana/root_complex.c b/src/soc/amd/morgana/root_complex.c index 5dd5d79579..88bcca75d2 100644 --- a/src/soc/amd/morgana/root_complex.c +++ b/src/soc/amd/morgana/root_complex.c @@ -13,7 +13,6 @@ #include <cpu/amd/msr.h> #include <device/device.h> #include <device/pci.h> -#include <device/pci_ids.h> #include <fsp/util.h> #include <soc/iomap.h> #include <stdint.h> @@ -236,7 +235,7 @@ static const char *gnb_acpi_name(const struct device *dev) return "GNB"; } -static struct device_operations root_complex_operations = { +struct device_operations morgana_root_complex_operations = { .read_resources = read_resources, .set_resources = noop_set_resources, .enable_resources = pci_dev_enable_resources, @@ -244,9 +243,3 @@ static struct device_operations root_complex_operations = { .acpi_name = gnb_acpi_name, .acpi_fill_ssdt = root_complex_fill_ssdt, }; - -static const struct pci_driver family17_root_complex __pci_driver = { - .ops = &root_complex_operations, - .vendor = PCI_VID_AMD, - .device = PCI_DID_AMD_17H_MODEL_A0AF_NB, /* TODO: Update for Morgana */ -}; |