]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qfw: Set the address of the ACPI tables
authorSimon Glass <sjg@chromium.org>
Sun, 16 Jul 2023 03:38:50 +0000 (21:38 -0600)
committerBin Meng <bmeng@tinylab.org>
Mon, 17 Jul 2023 09:12:07 +0000 (17:12 +0800)
Once the ACPI tables have been set up, record their address so that it is
possible to list them with 'acpi list'.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/misc/qfw.c

index 9ef95caa895622fe46f442d00131bcf4c76982c4..0a93feeb4b2eed11e497bc3c7de3ce4eca063dae 100644 (file)
@@ -18,6 +18,7 @@
 #include <dm.h>
 #include <misc.h>
 #include <tables_csum.h>
+#include <asm/acpi_table.h>
 
 #if defined(CONFIG_GENERATE_ACPI_TABLE) && !defined(CONFIG_SANDBOX)
 /*
@@ -227,6 +228,9 @@ out:
        }
 
        free(table_loader);
+
+       gd_set_acpi_start(acpi_get_rsdp_addr());
+
        return addr;
 }