From 8f2e5c90e44c6d846a6367bb4051818fdcd577ea Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 16 Jan 2023 20:06:31 +0100 Subject: soc/amd: introduce and use common amd_cpu_bus_ops struct The device operations for the CPU bus are identical for all AMD SoCs, so introduce a common device operations struct for this and use it in all AMD SoC's chipset devicetrees as ops for the CPU cluster. Signed-off-by: Felix Held Change-Id: Id32f89b8a33db8dbb747b917eeac3009fbae6631 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71998 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Fred Reitberger --- src/soc/amd/cezanne/chip.c | 7 ------- src/soc/amd/cezanne/chipset.cb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/soc/amd/cezanne') diff --git a/src/soc/amd/cezanne/chip.c b/src/soc/amd/cezanne/chip.c index efef2f19c9..d480cc563b 100644 --- a/src/soc/amd/cezanne/chip.c +++ b/src/soc/amd/cezanne/chip.c @@ -12,13 +12,6 @@ #include #include "chip.h" -struct device_operations cezanne_cpu_bus_ops = { - .read_resources = noop_read_resources, - .set_resources = noop_set_resources, - .init = mp_cpu_bus_init, - .acpi_fill_ssdt = generate_cpu_entries, -}; - static const char *soc_acpi_name(const struct device *dev) { if (dev->path.type == DEVICE_PATH_DOMAIN) diff --git a/src/soc/amd/cezanne/chipset.cb b/src/soc/amd/cezanne/chipset.cb index f0a3d861d0..691153f87b 100644 --- a/src/soc/amd/cezanne/chipset.cb +++ b/src/soc/amd/cezanne/chipset.cb @@ -1,6 +1,6 @@ chip soc/amd/cezanne device cpu_cluster 0 on - ops cezanne_cpu_bus_ops + ops amd_cpu_bus_ops end device domain 0 on ops cezanne_pci_domain_ops -- cgit v1.2.3