]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: qemu: qfw: Implement acpi_get_rsdp_addr()
authorBin Meng <bmeng.cn@gmail.com>
Tue, 30 Jan 2018 13:01:17 +0000 (05:01 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 30 Jan 2018 14:34:37 +0000 (22:34 +0800)
U-Boot on QEMU does not build ACPI table by ourself, instead it uses
the prebuilt ACPI table via the qfw interface. This implements the
qfw version of acpi_get_rsdp_addr() for setup_zimage().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/misc/qfw.c

index a8af9e0c537f921f57b5b7c4709e7124fc4cd4df..9a5480349efd28c6ee6a7b2a949cef5b829ee46f 100644 (file)
@@ -222,6 +222,14 @@ out:
        free(table_loader);
        return addr;
 }
+
+ulong acpi_get_rsdp_addr(void)
+{
+       struct fw_file *file;
+
+       file = qemu_fwcfg_find_file("etc/acpi/rsdp");
+       return file->addr;
+}
 #endif
 
 /* Read configuration item using fw_cfg PIO interface */