]> git.baikalelectronics.ru Git - uboot.git/commit
acpi: Add a way to check device status
authorSimon Glass <sjg@chromium.org>
Tue, 7 Jul 2020 19:11:40 +0000 (13:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commita6a2acc2612fb4e5731457ee50fc97151402e314
tree9b94a2499392579322f5c250e83b1a82b131c1f8
parentdc6cb10e05bdbf5f124a81dd2f725410209364f2
acpi: Add a way to check device status

At present U-Boot does not support the different ACPI status values, but
it is best to put this logic in a central place. Add a function to get the
device status.

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_device.h
lib/acpi/acpi_device.c
test/dm/acpi.c