diff options
author | Daniel Drake <drake@endlessm.com> | 2019-10-14 16:56:02 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-10-28 16:00:09 +0100 |
commit | 406857f773b082bc88edfd24967facf4ed07ac85 (patch) | |
tree | cf0ab4483ba63c0ea5a79138c79114437846bd5f /drivers/acpi/internal.h | |
parent | 4446abc9a10954e5d09dd2b894912348a22e7009 (diff) | |
download | linux-stable-406857f773b082bc88edfd24967facf4ed07ac85.tar.gz linux-stable-406857f773b082bc88edfd24967facf4ed07ac85.tar.bz2 linux-stable-406857f773b082bc88edfd24967facf4ed07ac85.zip |
ACPI: EC: add support for hardware-reduced systems
As defined in the ACPI spec section 12.11, ACPI hardware-reduced
platforms define the EC SCI interrupt as a GpioInt in the _CRS object.
This replaces the previous way of using a GPE for this interrupt;
GPE blocks are not available on reduced hardware platforms.
Add support for handling this interrupt as an EC event source, and
avoid GPE usage on reduced hardware platforms.
This enables the use of several media keys (e.g. screen brightness
up/down) on Asus UX434DA.
Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index afe6636f9ad3..3616daec650b 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h @@ -165,7 +165,8 @@ static inline void acpi_early_processor_osc(void) {} -------------------------------------------------------------------------- */ struct acpi_ec { acpi_handle handle; - u32 gpe; + int gpe; + int irq; unsigned long command_addr; unsigned long data_addr; bool global_lock; |