summaryrefslogtreecommitdiff
path: root/src/drivers/generic
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-09-13 18:42:12 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-09-21 20:42:39 +0000
commit2dc689372d19404cff3c0e0a8f6f5d42a675c6b4 (patch)
treee9cb4b075d3518ca82e698b0e30715c569110c3f /src/drivers/generic
parent63e77b025251afba6202056f688854be38b6e28d (diff)
drivers/generic/gpio_keys: Write device ACPI status
Allows device to be hidden from OS (Windows) via devicetree 'hidden' keyword. TEST=tested with rest of patch train Change-Id: I81482bd19e24627cab80deed2b9057f45b6ac0a0 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78037 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/generic')
-rw-r--r--src/drivers/generic/gpio_keys/gpio_keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c
index 75ce09f7ea..c0fd8de381 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -87,6 +87,8 @@ static void gpio_keys_fill_ssdt_generator(const struct device *dev)
acpi_dp_add_child(dsd, "button-0", child);
acpi_dp_write(dsd);
+ acpigen_write_STA(acpi_device_status(dev));
+
acpigen_pop_len(); /* Device */
acpigen_pop_len(); /* Scope */
}