diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-12-19 16:04:00 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2024-01-07 13:49:15 -0700 |
commit | b2f088c1210184b1ba11edaee0943ebd206e87e7 (patch) | |
tree | 40fee07b4c07e6a5d6fb05511987237777061156 /drivers/misc/qfw.c | |
parent | f47c86f6d3b468a4d467814783937ee9162b92fc (diff) |
acpi: Kconfig symbol CONFIG_QFW_ACPI
We have two implementations of write_acpi_tables(). One for writing ACPI
tables based on ACPI_WRITER() entries another based on copying tables from
QEMU.
Create a symbol CONFIG_QFW_ACPI that signifies copying ACPI tables from
QEMU and use it consistently.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc/qfw.c')
-rw-r--r-- | drivers/misc/qfw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index e3b6b4cd74..307334faf4 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -21,7 +21,7 @@ #include <tables_csum.h> #include <asm/acpi_table.h> -#if defined(CONFIG_GENERATE_ACPI_TABLE) && !defined(CONFIG_SANDBOX) +#ifdef QFW_ACPI /* * This function allocates memory for ACPI tables * @@ -259,7 +259,7 @@ ulong acpi_get_rsdp_addr(void) file = qfw_find_file(dev, "etc/acpi/rsdp"); return file->addr; } -#endif +#endif /* QFW_ACPI */ static void qfw_read_entry_io(struct qfw_dev *qdev, u16 entry, u32 size, void *address) |