From 884dfe632940b940df68d09f997fa5cd25121def Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 19 Sep 2016 12:04:19 -0700 Subject: x86: acpi: Add function for querying GPE status Add a function that can be implemented by the SOC to read and clear the status of a single GPE. This can be used during firmware to poll for interrupt status. BUG=chrome-os-partner:53336 Change-Id: I536c2176320fefa4c186dabcdddb55880c47fbad Signed-off-by: Duncan Laurie --- src/arch/x86/acpi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/x86/acpi.c') 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 */ +} -- cgit v1.2.3