mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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
This commit is contained in:
parent
d5a3f14c23
commit
ea6eef27ca
3 changed files with 18 additions and 1 deletions
14
arch/x86/include/asm/qemu.h
Normal file
14
arch/x86/include/asm/qemu.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Generic QEMU header
|
||||
*
|
||||
* Copyright 2023 Google LLC
|
||||
*/
|
||||
|
||||
#ifndef __QEMU_H
|
||||
#define __QEMU_H
|
||||
|
||||
/* set up the chipset for QEMU so that video can be used */
|
||||
void qemu_chipset_init(void);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue