acpi: Add support for writing a Power Resource
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:12:00 +0000 (13:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commitf9189d5ada8d48932463dc1d56ea4d44c050ebbd
treeac8c5c634ce28b5f31a35ab4586163df375d1ab9
parent9c70e7e556339ce9fa864782445f7927fafc5c03
acpi: Add support for writing a Power Resource

These are used in ACPI to disable power to various pats of the system when
in sleep. Add a way to create a power resource, with the caller finishing
off the details.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/acpi/acpigen.h
lib/acpi/acpigen.c
test/dm/acpigen.c