[PATCH v4 6/6] board: qemu: m68k: Create virtio mmio instances
Simon Glass
sjg at chromium.org
Mon Apr 13 17:04:00 CEST 2026
Hi Daniel,
On 2026-04-13T09:22:34, Daniel Palmer <daniel at thingy.jp> wrote:
> board: qemu: m68k: Create virtio mmio instances
>
> So that you can use virtio network, block etc create the virtio mmio
> instances. There are 128 of these even if they are not all used, a
> single mmio base value is passed via bootinfo.
>
> Signed-off-by: Daniel Palmer <daniel at thingy.jp>
>
> arch/m68k/Kconfig | 14 ++++++-----
> board/emulation/qemu-m68k/qemu-m68k.c | 45 +++++++++++++++++++++++++++++++++++
> 2 files changed, 53 insertions(+), 6 deletions(-)
> diff --git a/board/emulation/qemu-m68k/qemu-m68k.c b/board/emulation/qemu-m68k/qemu-m68k.c
> @@ -40,6 +40,38 @@
> +static int create_virtio_mmios(void)
> +{
> + struct driver *drv;
> + int i, ret;
> +
> + if (!virtio_mmio_base)
> + return -ENODEV;
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list