Files
Simon Glass b0264dc6e4 arm: qemu: Add an SPL build
Add an SPL build for qemu so we can test the standard passage feature.

Include a binman definition so that SPL and U-Boot are in the same image.
This requires adding a proper devicetree file for qemu_arm. It is only
used for the SPL build.

Avoid using the QEMU devicetree in U-Boot proper, so we can obtain it
from standard passage.

For now this just boots and hangs in SPL as there is no bloblist.

Series-changes: 3
- Drop common.h
- Use bootph tags
- Refresh the U-Boot output in the documentation

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-05-29 18:55:24 +01:00

27 lines
615 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2021 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
#include <cpu_func.h>
#include <spl.h>
#include <asm/spl.h>
u32 spl_boot_device(void)
{
return BOOT_DEVICE_BOARD;
}
static int spl_qemu_load_image(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev)
{
spl_image->name = "U-Boot";
spl_image->load_addr = spl_get_image_pos();
spl_image->entry_point = spl_get_image_pos();
flush_cache(spl_image->load_addr, spl_get_image_size());
return 0;
}
SPL_LOAD_IMAGE_METHOD("QEMU", 0, BOOT_DEVICE_BOARD, spl_qemu_load_image);