summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2023-07-23 12:40:41 +0800
committerLeo Yu-Chi Liang <[email protected]>2023-08-02 16:32:44 +0800
commit02be57caf730e2213bc844bf1dbe58bedd2c3734 (patch)
treea56e2dc62406de041c67a18c25dff02d362f36bb /doc
parent124308e67b6e1b6597ef34899211abac9bf7fd60 (diff)
riscv: qemu: Enable usb keyboard as an input device
This brings PCI xHCI support to QEMU RISC-V and uses a usb keyboard as one of the input devices. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Rick Chen <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r--doc/board/emulation/qemu-riscv.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index 9d21f3270c6..61137bcbf1c 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -138,6 +138,11 @@ and adding::
-serial stdio -device VGA
+In addition, a usb keyboard can be attached to an emulated xHCI controller in
+RISC-V virt machine as an option of input devices by adding::
+
+ -device qemu-xhci,id=xhci -device usb-kbd,bus=xhci.0
+
Running with KVM
----------------