acpi: Add a function to get a device path and scope
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:39 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit1361a53c1ae1f0534825e12ed41fb44aefd2c224
tree628a4f293065b7b549edadc42868d10a190d8019
parent4b724a13770c39ee3806dd30d349b6f8d03cfbc6
acpi: Add a function to get a device path and scope

Add a function to build up the ACPI path for a device and another for its
scope.

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