Skip to content

Commit 759bdc1

Browse files
avpatelpalmer-dabbelt
authored andcommitted
RISC-V: Add kconfig option for QEMU virt machine
We add kconfig option for QEMU virt machine and select all required VIRTIO drivers using this kconfig option. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent a160eed commit 759bdc1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/riscv/Kconfig.socs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,24 @@ config SOC_SIFIVE
1010
help
1111
This enables support for SiFive SoC platform hardware.
1212

13+
config SOC_VIRT
14+
bool "QEMU Virt Machine"
15+
select VIRTIO_PCI
16+
select VIRTIO_BALLOON
17+
select VIRTIO_MMIO
18+
select VIRTIO_CONSOLE
19+
select VIRTIO_NET
20+
select NET_9P_VIRTIO
21+
select VIRTIO_BLK
22+
select SCSI_VIRTIO
23+
select DRM_VIRTIO_GPU
24+
select HW_RANDOM_VIRTIO
25+
select RPMSG_CHAR
26+
select RPMSG_VIRTIO
27+
select CRYPTO_DEV_VIRTIO
28+
select VIRTIO_INPUT
29+
select SIFIVE_PLIC
30+
help
31+
This enables support for QEMU Virt Machine.
32+
1333
endmenu

0 commit comments

Comments
 (0)