coreboot/src/drivers/generic
Furquan Shaikh fa8b75fb17 gpio_keys: Allow boards to configure different wakeup routes
This change allows mainboard to configure different wakeup routes that
can be used by a GPIO key:
1. SCI: This is selected when SCI route is used to wake the system. It
results in _PRW property being exposed in ACPI tables.
2. GPIO IRQ: This is selected when GPIO controller wake is used to
wake the system. It is typically used when the input signal is not
dual routed and the GPIO controller block is not capable of applying
filters for IRQ and wake separately. In this case, _PRW is not exposed
in ACPI tables for the key device.
3. Disabled: No wakeup supported.

Based on these wakeup routes, gpio_keys_add_child_node() is updated to
expose _PRW and _DSD properties for wakeup appropriately.

Additionally, the change updates mainboards that were already using
gpio_keys to set wakeup_route attribute correctly and renames "wake"
to "wake_gpe" to make the usage clear.

BUG=b:159942427

Change-Id: Ib32b866b5f0ca559ed680b46218454bdfd8c6457
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42826
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-06-28 05:22:41 +00:00
..
adau7002 src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
bayhub src: Use pci_dev_ops_pci where applicable 2020-06-06 20:36:51 +00:00
cbfs-serial treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
generic src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
gpio_keys gpio_keys: Allow boards to configure different wakeup routes 2020-06-28 05:22:41 +00:00
gpio_regulator src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
ioapic treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
max98357a drivers/generic/max98357a: Don't write device if HID is missing 2020-06-03 19:17:36 +00:00