]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qemu: riscv: Enable UFS support
authorBin Meng <bmeng@tinylab.org>
Wed, 11 Oct 2023 13:15:52 +0000 (21:15 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 27 Nov 2023 21:18:59 +0000 (16:18 -0500)
This enables UFS support for QEMU RISC-V 'virt' machine.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/emulation/qemu-riscv/Kconfig
doc/board/emulation/qemu-riscv.rst

index d56b4b5bc1ed4121be382874a5bc46bd04e36f31..f3ee1f6e90a7b793d52c48a661975f9907c03d8b 100644 (file)
@@ -82,5 +82,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
        imply USB_XHCI_PCI
        imply USB_KEYBOARD
        imply CMD_USB
+       imply UFS
+       imply UFS_PCI
 
 endif
index 61137bcbf1c5c2e482aa9c7f48903592a2ac40e7..8a5eb1eda567a26a87853cfaae67c59ef4b106e1 100644 (file)
@@ -131,7 +131,13 @@ An attached disk can be emulated in RISC-V virt machine by adding::
     -drive if=none,file=riscv64.img,format=raw,id=mydisk \
     -device ide-hd,drive=mydisk,bus=ahci.0
 
-You will have to run 'scsi scan' to use it.
+or alternatively attach an emulated UFS::
+
+    -device ufs,id=ufs0 \
+    -drive if=none,file=test.img,format=raw,id=lun0 \
+    -device ufs-lu,drive=lun0,bus=ufs0
+
+You will have to run 'scsi scan' to use them.
 
 A video console can be emulated in RISC-V virt machine by removing "-nographic"
 and adding::