bus: efi: add basic ACPI bus infrastructure
It makes sense to support some ACPI tables like the WDAT (Watchdog
Action Table) in barebox. To facilitate this add a ACPI bus and
the necessary bits to integrate ACPI tables into the barebox
device/driver model as devices. These devices are identified by the
four byte signature, which drivers can then match against and the
system description table (SDT) of the device is then available as a
device memory resource.

Even without drivers, with this patch, devinfo and md can now be used
to view the ACPI system description tables, which can be useful
during UEFI payload development.

Support for the ACPI Machine Language and ACPI 5.1 _DSD (Device
Specific Data) is not implemented.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d0c7fb0 commit 9d2cc467bdccd01b2a6e23019a0f588969ff2a2e
@Ahmad Fatoum Ahmad Fatoum authored on 4 Dec 2019
Sascha Hauer committed on 9 Dec 2019
Showing 4 changed files
View
drivers/bus/Kconfig
View
drivers/bus/Makefile
View
drivers/bus/acpi.c 0 → 100644
View
include/acpi.h 0 → 100644