diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2016-09-19 19:20:11 -0700 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2016-09-19 19:20:11 -0700 |
commit | 6d412c7b81dd5d2429a1c11fe11c359c9833d71b (patch) | |
tree | d37e1d608326d34fbc9fd85f514cbbd437323a77 /src | |
parent | 120f1128442c11ef3032e382c8b2377380fb3cbc (diff) | |
download | coreboot-6d412c7b81dd5d2429a1c11fe11c359c9833d71b.tar.xz |
Revert "soc/intel/apollolake: Add function to read and clear GPE status"
This reverts commit 3d43a7c111d00be246160a04023fe438ae0cac57.
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/apollolake/pmutil.c | 21 |
1 files changed, 0 insertions, 21 deletions
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 <arch/acpi.h> #include <arch/io.h> #include <console/console.h> #include <cbmem.h> @@ -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; |