]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Support writing Device Properties objects via _DSD
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:56 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit0e5a0a00d6e44dc0c7e1466ceb3e452b43ceeb1b
treedf19c9ee9a3d00dc9acb646541dcd7ad7d250287
parent29df845204e6b67583491b3c9883432c3a74d923
acpi: Support writing Device Properties objects via _DSD

More complex device properties can be provided to drivers via a
device-specific data (_DSD) object.

To create this we need to build it up in a separate data structure and
then generate the ACPI code, due to its recursive nature.

Add an implementation of this.

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/acpi_dp.h [new file with mode: 0644]
include/acpi/acpigen.h
lib/acpi/Makefile
lib/acpi/acpi_dp.c [new file with mode: 0644]
test/dm/Makefile
test/dm/acpi.h [new file with mode: 0644]
test/dm/acpi_dp.c [new file with mode: 0644]
test/dm/acpigen.c