x86: Allow any arch to generate ACPI tables
authorSimon Glass <sjg@chromium.org>
Wed, 1 Dec 2021 16:02:36 +0000 (09:02 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Jan 2022 18:44:36 +0000 (11:44 -0700)
These have sadly found their way to ARM now. Allow any arch to support
generating ACPI tables.

Disable this for the tools build.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/Kconfig
arch/x86/Kconfig
configs/tools-only_defconfig
lib/Kconfig

index 343db9e..b5aa83d 100644 (file)
@@ -152,6 +152,7 @@ config SANDBOX
        select SYS_CACHE_SHIFT_4
        select IRQ
        select SUPPORT_EXTENSION_SCAN
+       select SUPPORT_ACPI
        imply BITREVERSE
        select BLOBLIST
        imply LTO
@@ -217,6 +218,7 @@ config X86
        select HAVE_PRIVATE_LIBGCC
        select OF_CONTROL
        select PCI
+       select SUPPORT_ACPI
        select SUPPORT_OF_CONTROL
        select SYS_CACHE_SHIFT_6
        select TIMER
index b8d8ee3..7cbfd6c 100644 (file)
@@ -770,15 +770,6 @@ config GENERATE_MP_TABLE
          multiprocessing as well as symmetric I/O interrupt handling with
          the local APIC and I/O APIC.
 
-config GENERATE_ACPI_TABLE
-       bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
-       select QFW if QEMU
-       help
-         The Advanced Configuration and Power Interface (ACPI) specification
-         provides an open standard for device configuration and management
-         by the operating system. It defines platform-independent interfaces
-         for configuration and power management monitoring.
-
 config ACPI_GNVS_EXTERNAL
        bool
        help
index abb0024..b78e509 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_MISC_INIT_F=y
 CONFIG_OF_CONTROL=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 # CONFIG_NET is not set
+# CONFIG_GENERATE_ACPI_TABLE is not set
 # CONFIG_ACPIGEN is not set
 CONFIG_AXI=y
 CONFIG_AXI_SANDBOX=y
index 38051cc..7f6a754 100644 (file)
@@ -202,6 +202,24 @@ config LIB_HW_RAND
 
 endchoice
 
+config SUPPORT_ACPI
+       bool
+       help
+         Enable this if your arch or board can support generating ACPI
+         (Advanced Configuration and Power Interface) tables. In this case
+         U-Boot can generate these tables and pass them to the Operating
+         System.
+
+config GENERATE_ACPI_TABLE
+       bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
+       depends on SUPPORT_ACPI
+       select QFW if QEMU
+       help
+         The Advanced Configuration and Power Interface (ACPI) specification
+         provides an open standard for device configuration and management
+         by the operating system. It defines platform-independent interfaces
+         for configuration and power management monitoring.
+
 config SPL_TINY_MEMSET
        bool "Use a very small memset() in SPL"
        help