coreboot/src/drivers
Cliff Huang 511f7c3d6a drivers/intel/touch: Conditionally add ACPI _PRW based on wake source
This change addresses an issue in the touch driver where the ACPI _PRW
method was added unconditionally. The ACPI _PRW method should only be
generated when an Interrupt() resource is used in the _CRS method.
When a GpioInt() resource is used instead, the _PRW method is not
required.

The ACPI generation code has been updated to conditionally add the
_PRW method based on whether the wake source is a GPIO interrupt or
an IRQ interrupt. Now, the _PRW method is only added when an IRQ pin
is specified, which is consistent with ACPI requirements.

BUG=none
TEST=Configure the DRIVERS_INTEL_TOUCH option on a motherboard that
has the necessary touch configurations with wake support. Verify that
the THC ACPI tables are correctly generated in the SSDT. If wake_gpio
(i.e. GpioInt()) is used for wake, no _PRW is generated for the device.

Signed-off-by: Cliff Huang <cliff.huang@intel.com>
Change-Id: I56fc8486c7494ff37c1d580d57838fee286128a6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87085
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-04-05 14:41:51 +00:00
..
acpi/thermal_zone
amd drivers/amd/opensil/memmap.c: Factor out common memmap code to driver 2025-02-21 14:11:43 +00:00
ams
analogix/anx7625
asmedia drivers/asmedia/asm1061: Align = only with tabs and not spaces 2025-02-10 15:14:32 +00:00
aspeed
broadcom
camera
crb drivers/crb: Always generate TPM ACPI Tables 2025-02-25 09:03:46 +00:00
efi drivers/efi/capsules.c: fix recording capsule size 2025-03-01 23:29:54 +00:00
elog
emulation/qemu drivers/qemu/bochs: Use arch-independent data port 2025-02-14 17:10:10 +00:00
generic
genesyslogic
gfx/generic
i2c drivers/i2c/generic: Add option to generate proper PowerResource _STA 2025-03-11 21:40:57 +00:00
intel drivers/intel/touch: Conditionally add ACPI _PRW based on wake source 2025-04-05 14:41:51 +00:00
ipmi
lenovo
maxim
mipi drivers/mipi: Add support for CSOT_PNA957QT1_1 panel 2025-01-29 18:26:50 +00:00
mrc_cache
net
nxp/uwb
ocp
option CFR: Add min/max/step values and hex display flag for number options 2025-02-07 22:00:01 +00:00
parade
pc80 drivers/pc80/pc/keyboard.c: Add function to change a command byte bit 2025-01-22 20:45:37 +00:00
pcie
ricoh/rce822
secunet/dmi
siemens/nc_fpga
sil/3114
smbus
smmstore
sof
soundwire drivers/soundwire: Support Realtek ALC1320 codec 2025-03-26 20:57:18 +00:00
spi
ti
tpm
uart drivers/uart: Replace 'unsigned long int' by 'unsigned long' 2025-01-08 03:09:36 +00:00
usb driver/usb/intel_bluetooth: Add PS0 and PS3 methods 2025-02-28 08:49:02 +00:00
vpd
wifi/generic drivers/wifi/generic: Add Methods to control CNVi enable GPIO 2025-02-28 08:43:34 +00:00
wwan/fm