diff options
| author | Simon Glass <sjg@chromium.org> | 2023-07-30 11:16:01 -0600 | 
|---|---|---|
| committer | Bin Meng <bmeng.cn@gmail.com> | 2023-08-09 23:31:11 +0800 | 
| commit | ea6eef27caba27f8b92b13dda123623d59947ece (patch) | |
| tree | cee59b412893f47800aace4a50eaaf8f0ded1fca /arch/x86/lib/spl.c | |
| parent | d5a3f14c23edb124babeb9a01f543f2ab3a7e14f (diff) | |
x86: Run QEMU machine setup in SPL
Call the hardware-init function from QEMU from SPL. This allows the
video BIOS to operate correctly.
Create an x86-wide qemu.h header to avoid having to #ifdef the header
in spl.c
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com> # qemu-x86_64
Diffstat (limited to 'arch/x86/lib/spl.c')
| -rw-r--r-- | arch/x86/lib/spl.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index 55c06157086..f99df08fbec 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c @@ -27,6 +27,7 @@  #include <asm/mtrr.h>  #include <asm/pci.h>  #include <asm/processor.h> +#include <asm/qemu.h>  #include <asm/spl.h>  #include <asm-generic/sections.h> @@ -291,6 +292,8 @@ void spl_board_init(void)  #ifndef CONFIG_TPL  	preloader_console_init();  #endif +	if (IS_ENABLED(CONFIG_QEMU)) +		qemu_chipset_init();  	if (CONFIG_IS_ENABLED(VIDEO)) {  		struct udevice *dev; | 
