summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSridhar Siricilla <sridhar.siricilla@intel.com>2021-11-15 17:12:49 +0530
committerFelix Held <felix-coreboot@felixheld.de>2022-01-18 16:13:28 +0000
commit0fd734046a131ec5433573eb79127d9ea9d6d66e (patch)
treea344cf48d37f4ff349a83caaddb383c534c79bfd
parentdb8afc70ba3d4399d16e76e9e6cf71fb86f63dd9 (diff)
downloadcoreboot-0fd734046a131ec5433573eb79127d9ea9d6d66e.tar.gz
coreboot-0fd734046a131ec5433573eb79127d9ea9d6d66e.tar.bz2
coreboot-0fd734046a131ec5433573eb79127d9ea9d6d66e.zip
src/include/acpi: Move CPPC_PACKAGE_NAME macro definition
The patch moves the CPPC_PACKAGE_NAME macro definition from file acpi/acpigen.c to include/acpi/acpigen.h file since the CPPC_PACKAGE_NAME method will get called from cpu/intel/common in a later patch. TEST=Built the code for Brya Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Change-Id: Ic547445cdbe2b1a3efe44390bd127f577386e7fc Reviewed-on: https://review.coreboot.org/c/coreboot/+/59358 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r--src/acpi/acpigen.c2
-rw-r--r--src/include/acpi/acpigen.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index 2b74261a2fb9..ff04d0f396fa 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -10,8 +10,6 @@
#define ACPIGEN_MAXLEN 0xfffff
-#define CPPC_PACKAGE_NAME "GCPC"
-
#include <lib.h>
#include <string.h>
#include <acpi/acpigen.h>
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index c97713fa6fc1..2a3e930d4dda 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -235,6 +235,8 @@ struct dsm_uuid {
#define CPPC_VERSION_2 2
#define CPPC_VERSION_3 3
+#define CPPC_PACKAGE_NAME "GCPC"
+
/*version 1 has 15 fields, version 2 has 19, and version 3 has 21 */
enum cppc_fields {
CPPC_HIGHEST_PERF, /* can be DWORD */