From 1d703a7e6e48838b412d6d5894b6df9c946dc5d9 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 1 Jun 2023 22:02:45 +0200 Subject: soc/amd/mendocino/acpi: use ROOT_BRIDGE macro Use the ROOT_BRIDGE macro in soc.asl to replace the pci0.asl file. The soc/amd/common/acpi/lpc.asl file which was included in the now removed pci0.asl file now gets included in the correct scope in the soc.asl file. Signed-off-by: Felix Held Change-Id: I6fc4b09f79e633208ab7536543c876c2c6129eb3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75593 Reviewed-by: Raul Rangel Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/soc/amd/mendocino/acpi/pci0.asl | 26 -------------------------- src/soc/amd/mendocino/acpi/soc.asl | 7 ++++++- 2 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 src/soc/amd/mendocino/acpi/pci0.asl (limited to 'src/soc/amd/mendocino') diff --git a/src/soc/amd/mendocino/acpi/pci0.asl b/src/soc/amd/mendocino/acpi/pci0.asl deleted file mode 100644 index 3aa2aa82f0..0000000000 --- a/src/soc/amd/mendocino/acpi/pci0.asl +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* TODO: Check if this is still correct */ - -Device(PCI0) { - Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */ - Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ - - /* Operating System Capabilities Method */ - Method(_OSC, 4) { - CreateDWordField(Arg3, 0, CDW1) /* Capabilities dword 1 */ - - /* Check for proper PCI/PCIe UUID */ - If (Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766")) { - /* Let OS control everything */ - Return (Arg3) - } Else { - CDW1 |= 4 /* Unrecognized UUID */ - Return (Arg3) - } - } - - /* 0:14.3 - LPC */ - #include - -} /* End PCI0 scope */ diff --git a/src/soc/amd/mendocino/acpi/soc.asl b/src/soc/amd/mendocino/acpi/soc.asl index 7e9e2e8cc2..5a73f3bd65 100644 --- a/src/soc/amd/mendocino/acpi/soc.asl +++ b/src/soc/amd/mendocino/acpi/soc.asl @@ -2,6 +2,7 @@ /* TODO: Check if this is still correct */ +#include #include "globalnvs.asl" Scope(\_SB) { @@ -18,7 +19,11 @@ Scope(\_SB) { #include "mmio.asl" - #include "pci0.asl" + ROOT_BRIDGE(PCI0) + + Scope(PCI0) { + #include + } /* End PCI0 scope */ } /* End \_SB scope */ #include -- cgit v1.2.3