From 41a5954a6785bfad95dce36611b92f1123e350e2 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 19 Dec 2023 22:33:46 +0100 Subject: soc/amd/picasso/acpi: move SoC-common code from dsdt.asl to soc.asl To avoid code duplication and to also bring the mainboards using the Picasso SoC more in line with Cezanne and newer, factor out the SoC- specific code from the mainboard's dsdt.asl files to the SoC's soc.asl. TEST=Timeless builds result in identical images for Bilby, Mandolin, and Zork/Morphius Signed-off-by: Felix Held Change-Id: Id4ed3a3d3cb55c8b3b474c66a7c1700e24fe908e Reviewed-on: https://review.coreboot.org/c/coreboot/+/79653 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Matt DeVillier --- src/soc/amd/picasso/acpi/soc.asl | 55 ++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 19 deletions(-) (limited to 'src/soc/amd/picasso/acpi/soc.asl') diff --git a/src/soc/amd/picasso/acpi/soc.asl b/src/soc/amd/picasso/acpi/soc.asl index a958570905..7c13f0863e 100644 --- a/src/soc/amd/picasso/acpi/soc.asl +++ b/src/soc/amd/picasso/acpi/soc.asl @@ -1,30 +1,47 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include "globalnvs.asl" -ROOT_BRIDGE(PCI0) +/* Power state notification to ALIB */ +#include "pnot.asl" -Scope(PCI0) { - /* Describe the AMD Northbridge */ - #include "northbridge.asl" +/* Contains the supported sleep states for this chipset */ +#include - /* Describe the AMD Fusion Controller Hub */ - #include - #include -} +/* Contains _SWS methods */ +#include -/* PCI IRQ mapping for the Southbridge */ -#include "pci_int_defs.asl" +/* System Bus */ +Scope(\_SB) { /* Start \_SB scope */ + /* global utility methods expected within the \_SB scope */ + #include -/* Describe PCI INT[A-H] for the Southbridge */ -#include + ROOT_BRIDGE(PCI0) -/* Describe the MMIO devices in the FCH */ -#include "mmio.asl" + Scope(PCI0) { + /* Describe the AMD Northbridge */ + #include "northbridge.asl" -/* Add GPIO library */ -#include + /* Describe the AMD Fusion Controller Hub */ + #include + #include + } -#if CONFIG(SOC_AMD_COMMON_BLOCK_ACPI_DPTC) -#include -#endif + /* PCI IRQ mapping for the Southbridge */ + #include "pci_int_defs.asl" + + /* Describe PCI INT[A-H] for the Southbridge */ + #include + + /* Describe the MMIO devices in the FCH */ + #include "mmio.asl" + + /* Add GPIO library */ + #include + + #if CONFIG(SOC_AMD_COMMON_BLOCK_ACPI_DPTC) + #include + #endif + +} /* End \_SB scope */ -- cgit v1.2.3