summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
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/common
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/common')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/alib.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/alib.h b/src/soc/amd/common/block/include/amdblocks/alib.h
new file mode 100644
index 0000000000..a59ba8b153
--- /dev/null
+++ b/src/soc/amd/common/block/include/amdblocks/alib.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef AMD_COMMON_ALIB_H
+#define AMD_COMMON_ALIB_H
+
+#define ALIB_FUNCTION_REPORT_AC_DC_STATE 0x1
+#define ALIB_FUNCTION_DYNAMIC_POWER_THERMAL_CONFIG 0xc
+
+#endif /* AMD_COMMON_ALIB_H */