acpi: Enable ACPI table generation by default on x86
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 03:22:39 +0000 (21:22 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
This should ideally be used by all x86 boards in U-Boot. Enable it by
default. If some boards don't use it, the cost is small.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/Kconfig
drivers/core/Kconfig

index a11f872..9be02d1 100644 (file)
@@ -190,6 +190,7 @@ config X86
        imply PCH
        imply RTC_MC146818
        imply IRQ
+       imply ACPIGEN if !QEMU
 
        # Thing to enable for when SPL/TPL are enabled: SPL
        imply SPL_DM
index a594899..00d1d80 100644 (file)
@@ -270,7 +270,7 @@ config DM_DEV_READ_INLINE
 
 config ACPIGEN
        bool "Support ACPI table generation in driver model"
-       default y if SANDBOX || GENERATE_ACPI_TABLE
+       default y if SANDBOX || (GENERATE_ACPI_TABLE && !QEMU)
        help
          This option enables generation of ACPI tables using driver-model
          devices. It adds a new operation struct to each driver, to support