aboutsummaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 12:44:56 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:13 +0800
commite0a896b88f2e517b10c67a4f85f3846a0312041d (patch)
tree37d262b871bb50c74139da14c8f2844661883789 /include/acpi
parent99e555a79ab882eb8b38886fa5dab053d4d64bfa (diff)
downloadu-boot-e0a896b88f2e517b10c67a4f85f3846a0312041d.zip
u-boot-e0a896b88f2e517b10c67a4f85f3846a0312041d.tar.gz
u-boot-e0a896b88f2e517b10c67a4f85f3846a0312041d.tar.bz2
acpi: Add support for writing a _PRW
A 'Power Resource for Wake' list the resources a device depends on for wake. Add a function to generate this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpigen.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/acpi/acpigen.h b/include/acpi/acpigen.h
index 228ac9c..a9b7012 100644
--- a/include/acpi/acpigen.h
+++ b/include/acpi/acpigen.h
@@ -563,4 +563,14 @@ int acpigen_set_enable_tx_gpio(struct acpi_ctx *ctx, u32 tx_state_val,
const char *dw0_read, const char *dw0_write,
struct acpi_gpio *gpio, bool enable);
+/**
+ * acpigen_write_prw() - Write a power resource for wake (_PRW)
+ *
+ * @ctx: ACPI context pointer
+ * @wake: GPE that wakes up the device
+ * @level: Deepest power system sleeping state that can be entered while still
+ * providing wake functionality
+ */
+void acpigen_write_prw(struct acpi_ctx *ctx, uint wake, uint level);
+
#endif