summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/cezanne/acpi/soc.asl2
-rw-r--r--src/soc/amd/common/acpi/osc.asl22
2 files changed, 24 insertions, 0 deletions
diff --git a/src/soc/amd/cezanne/acpi/soc.asl b/src/soc/amd/cezanne/acpi/soc.asl
index be511042e4..f7781dab2e 100644
--- a/src/soc/amd/cezanne/acpi/soc.asl
+++ b/src/soc/amd/cezanne/acpi/soc.asl
@@ -8,6 +8,8 @@ Scope(\_SB) {
#include <soc/amd/common/acpi/gpio_bank_lib.asl>
+ #include <soc/amd/common/acpi/osc.asl>
+
#include "pci_int_defs.asl"
#include "mmio.asl"
diff --git a/src/soc/amd/common/acpi/osc.asl b/src/soc/amd/common/acpi/osc.asl
new file mode 100644
index 0000000000..22175caa45
--- /dev/null
+++ b/src/soc/amd/common/acpi/osc.asl
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <acpi/acpi_osc.h>
+
+/*
+ * Platform-Wide _OSC Operating System Capabilities
+ *
+ * Arg0: A Buffer containing a UUID
+ * Arg1: An Integer containing a Revision ID of the buffer format
+ * Arg2: An Integer containing a count of entries in Arg3
+ * Arg3: A Buffer containing a list of DWORD capabilities
+ */
+Method (_OSC, 4, NotSerialized) {
+ CreateDWordField (Arg3, 0, CDW1)
+ If (Arg0 == ToUUID (OSC_SB_UUID)) {
+ /* Don't mask any capability bits off. */
+ Return (Arg3)
+ } Else {
+ CDW1 |= OSC_CDW1_UNRECOGNIZED_UUID
+ Return (Arg3)
+ }
+}