From cbc45cb5964297e682f072e56336288a8b5c881a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 10 Jan 2024 21:26:53 +0100 Subject: riscv: qemu: enable booting on a second virtio device QEMU RISC-V supports multiple virtio devices, but only tries to boot to the first one. Enable support for a second virtio device, that is useful for instance to boot on a disk image + an installer. Ideally that should be made dynamic, but that's a first step. Signed-off-by: Aurelien Jarno Reviewed-by: Leo Yu-Chi Liang --- include/configs/qemu-riscv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 584559cfa32..2f594bfcfd6 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -23,6 +23,7 @@ #define BOOT_TARGET_DEVICES(func) \ func(VIRTIO, virtio, 0) \ + func(VIRTIO, virtio, 1) \ func(SCSI, scsi, 0) \ func(DHCP, dhcp, na) -- cgit v1.2.3 From 0dc6ee6d2bd74ce1494b8df585cda6159f165152 Mon Sep 17 00:00:00 2001 From: Kongyang Liu Date: Sun, 28 Jan 2024 15:05:25 +0800 Subject: riscv: sophgo: milkv_duo: initial support added Add support for Sophgo's Milk-V Duo board, only minimal device tree and serial console are enabled, and it can boot via vendor first stage bootloader. Signed-off-by: Kongyang Liu Reviewed-by: Leo Yu-Chi Liang --- include/configs/milkv_duo.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/configs/milkv_duo.h (limited to 'include') diff --git a/include/configs/milkv_duo.h b/include/configs/milkv_duo.h new file mode 100644 index 00000000000..0b4109dc1f7 --- /dev/null +++ b/include/configs/milkv_duo.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2024, Kongyang Liu + * + */ + +#ifndef __CONFIG_H +#define __CONFIG_H + +#define CFG_SYS_SDRAM_BASE 0x80000000 + +#endif /* __CONFIG_H */ -- cgit v1.2.3