]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: qemu: add config fragment for ACPI
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 19 Dec 2023 15:04:07 +0000 (16:04 +0100)
committerSimon Glass <sjg@chromium.org>
Sun, 7 Jan 2024 20:49:15 +0000 (13:49 -0700)
Provide a configuration fragment to enable ACPI on QEMU.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
MAINTAINERS
board/emulation/configs/acpi.config [new file with mode: 0644]
doc/board/emulation/acpi.rst [new file with mode: 0644]
doc/board/emulation/index.rst

index 417061ae2f94201459f1420eb9bc69ddb66c10fe..0dedb428dedf52680e0b9ffcfde23b6042e8924f 100644 (file)
@@ -53,6 +53,7 @@ Maintainers List (try to look for most precise areas first)
 ACPI:
 M:     Simon Glass <sjg@chromium.org>
 S:     Maintained
+F:     board/emulation/configs/acpi.config
 F:     cmd/acpi.c
 F:     lib/acpi/
 
diff --git a/board/emulation/configs/acpi.config b/board/emulation/configs/acpi.config
new file mode 100644 (file)
index 0000000..b7ed811
--- /dev/null
@@ -0,0 +1,3 @@
+CONFIG_CMD_QFW=y
+CONFIG_ACPI=y
+CONFIG_GENERATE_ACPI_TABLE=y
diff --git a/doc/board/emulation/acpi.rst b/doc/board/emulation/acpi.rst
new file mode 100644 (file)
index 0000000..17b68e1
--- /dev/null
@@ -0,0 +1,23 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+ACPI on QEMU
+============
+
+QEMU can provide ACPI tables on ARM, RISC-V (since QEMU v8.0.0), and x86.
+
+The following U-Boot settings are needed for ACPI support::
+
+    CONFIG_CMD_QFW=y
+    CONFIG_ACPI=y
+    CONFIG_GENERATE_ACPI_TABLE=y
+
+On x86 these settings are already included in the defconfig files. ARM and
+RISC-V default to use device-trees.
+
+Instead of updating the configuration manually you can add the configuration
+fragment `acpi.config` to the make command for initializing the configuration.
+E.g.
+
+.. code-block:: bash
+
+    make qemu-riscv64_smode_defconfig acpi.config
index 932c65adebb2260c9fc1b6033454525afe49e3c9..d3d6b8f3d86b9bbbd694131db1f38cb736d461d9 100644 (file)
@@ -6,6 +6,7 @@ Emulation
 .. toctree::
    :maxdepth: 1
 
+   acpi
    blkdev
    ../../usage/semihosting
    qemu-arm