]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Support copying properties from device tree to ACPI
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:58 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit06679000493a07eb643287d1adfa4ffe6c3fc87c
treef9e716cfaec1b8ce5af787ed5ac8e6ed56bfc47d
parent235723466628c32e30685363377e416696318e84
acpi: Support copying properties from device tree to ACPI

Some drivers in Linux support both device tree and ACPI. U-Boot itself
uses Linux device-tree bindings for its own configuration but does not use
ACPI.

It is convenient to copy these values over to the ACPI DP table for
passing to linux. Add some convenience functions to help with 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>
arch/sandbox/dts/test.dts
include/acpi/acpi_dp.h
lib/acpi/acpi_dp.c
test/dm/acpi_dp.c