diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-07 13:11:40 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-07-17 14:32:24 +0800 |
commit | 2715b3623c08bf1ad2dfe6076ad86c24e3138016 (patch) | |
tree | 9b94a2499392579322f5c250e83b1a82b131c1f8 /lib/acpi/acpi_device.c | |
parent | 1361a53c1ae1f0534825e12ed41fb44aefd2c224 (diff) |
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/acpi/acpi_device.c')
-rw-r--r-- | lib/acpi/acpi_device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c index 3a9424e7ee..60f4fd8cd5 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; +} |