coreboot-kgpe-d16/src/mainboard/google/poppy
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
..
acpi mb/google/poppy: Add variant support for camera asl 2017-11-29 00:11:26 +00:00
spd mb/[google/intel/lenovo]/*: fix posix shell bug with SPD files 2019-10-09 22:16:40 +00:00
variants gpio_keys: Allow boards to configure different wakeup routes 2020-06-28 05:22:41 +00:00
board_info.txt
bootblock.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
chromeos.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
chromeos.fmd mainboard: Enable PRESERVE flag in all vboot/chromeos FMD files 2019-03-05 20:52:06 +00:00
dsdt.asl treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ec.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gma-mainboard.ads treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig mb/google/atlas: Add libgfxinit support 2019-12-31 15:18:17 +00:00
Kconfig.name mb/google/poppy: Add retail names 2020-06-09 06:26:21 +00:00
mainboard.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Makefile.inc src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
ramstage.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
romstage.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smihandler.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00