From 6d412c7b81dd5d2429a1c11fe11c359c9833d71b Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 19 Sep 2016 19:20:11 -0700 Subject: Revert "soc/intel/apollolake: Add function to read and clear GPE status" This reverts commit 3d43a7c111d00be246160a04023fe438ae0cac57. --- src/soc/intel/apollolake/pmutil.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/soc/intel/apollolake') diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index 56bb33dc40..2aef18c8e6 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -17,7 +17,6 @@ #define __SIMPLE_DEVICE__ -#include #include #include #include @@ -302,26 +301,6 @@ uint32_t clear_gpe_status(void) return print_gpe_sts(reset_gpe_status()); } -/* Read and clear GPE status (defined in arch/acpi.h) */ -int acpi_get_gpe(int gpe) -{ - int bank; - uint32_t mask, sts; - - if (gpe < 0 || gpe > GPE0_DW3_31) - return -1; - - bank = gpe / 32; - mask = 1 << (gpe % 32); - - sts = inl(ACPI_PMIO_BASE + GPE0_STS(bank)); - if (sts & mask) { - outl(mask, ACPI_PMIO_BASE + GPE0_STS(bank)); - return 1; - } - return 0; -} - void clear_pmc_status(void) { uint32_t prsts; -- cgit v1.2.3