mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
x86: qemu: add fw_cfg support
The QEMU fw_cfg interface allows the guest to retrieve various data information from QEMU. For example, APCI/SMBios tables, number of online cpus, kernel data and command line, etc. This patch adds support for QEMU fw_cfg interface. Signed-off-by: Miao Yan <yanmiaobest@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <asm/processor.h>
|
||||
#include <asm/arch/device.h>
|
||||
#include <asm/arch/qemu.h>
|
||||
#include <asm/fw_cfg.h>
|
||||
|
||||
static bool i440fx;
|
||||
|
||||
@@ -57,6 +58,8 @@ static void qemu_chipset_init(void)
|
||||
x86_pci_write_config32(PCI_BDF(0, 0, 0), PCIEX_BAR,
|
||||
CONFIG_PCIE_ECAM_BASE | BAR_EN);
|
||||
}
|
||||
|
||||
qemu_fwcfg_init();
|
||||
}
|
||||
|
||||
int arch_cpu_init(void)
|
||||
|
Reference in New Issue
Block a user