aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-05-07 18:46:36 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-05-08 17:56:10 +0000
commit95f1bb852525808a7b514745ebe3d19b6d2df7c4 (patch)
tree56195beca9a519060a693afb1bec08f44cf028ed /src/soc/amd/stoneyridge
parent509b0a97f6a44ea85a8a37087a03526dd513a88f (diff)
soc/amd: factor out ACPI ALIB function numbers to common code
The ACPI ALIB function numbers are defined in the AMD Generic Encapsulated Software Architecture (AGESA™) Interface Specification (document #55483). TEST=Timeless build stays the same for Mandolin (Picasso) and Gardenia (Stoneyridge). Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I290ef0db32c65ebb2bbbe4f65db4df772b884161 Reviewed-on: https://review.coreboot.org/c/coreboot/+/53915 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
index 4580b772f0..78ce889e5d 100644
--- a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
+++ b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <amdblocks/alib.h>
+
External(\_SB.ALIB, MethodObj)
/* System Bus */
@@ -142,7 +144,7 @@ Method(_INI, 0, Serialized) {
F1SZ = 3
F1DA= \PWRS
- \_SB.ALIB(1, F1BF)
+ \_SB.ALIB(ALIB_FUNCTION_REPORT_AC_DC_STATE, F1BF)
} /* End Method(_SB._INI) */