aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-07 13:11:40 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-07-17 14:32:24 +0800
commit2715b3623c08bf1ad2dfe6076ad86c24e3138016 (patch)
tree9b94a2499392579322f5c250e83b1a82b131c1f8 /lib
parent1361a53c1ae1f0534825e12ed41fb44aefd2c224 (diff)
downloadu-boot-2715b3623c08bf1ad2dfe6076ad86c24e3138016.zip
u-boot-2715b3623c08bf1ad2dfe6076ad86c24e3138016.tar.gz
u-boot-2715b3623c08bf1ad2dfe6076ad86c24e3138016.tar.bz2
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/acpi/acpi_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c
index 3a9424e..60f4fd8 100644
--- a/lib/acpi/acpi_device.c
+++ b/lib/acpi/acpi_device.c
@@ -81,3 +81,8 @@ int acpi_device_scope(const struct udevice *dev, char *scope, int maxlen)
return 0;
}
+
+enum acpi_dev_status acpi_device_status(const struct udevice *dev)
+{
+ return ACPI_DSTATUS_ALL_ON;
+}