aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-30 11:16:01 -0600
committerBin Meng <bmeng.cn@gmail.com>2023-08-09 23:31:11 +0800
commitea6eef27caba27f8b92b13dda123623d59947ece (patch)
treecee59b412893f47800aace4a50eaaf8f0ded1fca /arch/x86/include
parentd5a3f14c23edb124babeb9a01f543f2ab3a7e14f (diff)
downloadu-boot-ea6eef27caba27f8b92b13dda123623d59947ece.zip
u-boot-ea6eef27caba27f8b92b13dda123623d59947ece.tar.gz
u-boot-ea6eef27caba27f8b92b13dda123623d59947ece.tar.bz2
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/include')
-rw-r--r--arch/x86/include/asm/qemu.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/x86/include/asm/qemu.h b/arch/x86/include/asm/qemu.h
new file mode 100644
index 0000000..f1e95ff
--- /dev/null
+++ b/arch/x86/include/asm/qemu.h
@@ -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