mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
ece5c37f0c
commit
f60df20aa9
4 changed files with 380 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue