dm: core: Add basic ACPI support
authorSimon Glass <sjg@chromium.org>
Thu, 9 Apr 2020 16:27:38 +0000 (10:27 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
commit7ca2850cbcb2adca4f6927d9bf77626091ab5c3e
treea84c7bbd42198a146e59f6bd8b62e113b18b3978
parentb2c386846332e9fc1571aa1eed3ac47b903bd32c
dm: core: Add basic ACPI support

ACPI (Advanced Configuration and Power Interface) is a standard for
specifying information about a platform. It is a little like device
tree but the bindings are part of the specification and it supports an
interpreted bytecode language.

Driver model does not use ACPI for U-Boot's configuration, but it is
convenient to have it support generation of ACPI tables for passing to
Linux, etc.

As a starting point, add an optional set of ACPI operations to each
device. Initially only a single operation is available, to obtain the
ACPI name for the device. More operations are added later.

Enable ACPI for sandbox to ensure build coverage and so that we can add
tests.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
configs/tools-only_defconfig
drivers/core/Kconfig
drivers/core/Makefile
drivers/core/acpi.c [new file with mode: 0644]
include/dm/acpi.h [new file with mode: 0644]
include/dm/device.h
include/log.h