summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/acpi.c5
-rw-r--r--src/arch/x86/include/arch/acpi.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index bbeb92f3ba..edb6835dc8 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -1093,3 +1093,8 @@ void acpi_save_gnvs(u32 gnvs_address)
if (gnvs)
*gnvs = gnvs_address;
}
+
+__attribute__ ((weak)) int acpi_get_gpe(int gpe)
+{
+ return -1; /* implemented by SOC */
+}
diff --git a/src/arch/x86/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h
index e81ddbf02f..7d2993162d 100644
--- a/src/arch/x86/include/arch/acpi.h
+++ b/src/arch/x86/include/arch/acpi.h
@@ -677,6 +677,9 @@ static inline int acpi_sleep_from_pm1(uint32_t pm1_cnt)
/* Returns ACPI_Sx values. */
int acpi_get_sleep_type(void);
+/* Read and clear GPE status */
+int acpi_get_gpe(int gpe);
+
static inline int acpi_s3_resume_allowed(void)
{
return IS_ENABLED(CONFIG_HAVE_ACPI_RESUME);