Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Sep 2021 12:09:54 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3c7b6c729d1b - stable/13 - riscv: Add NVMe, USB and HID support to GENERIC
Message-ID:  <202109071209.187C9sIw087527@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=3c7b6c729d1b36c317396d6256a0241bb13f32b8

commit 3c7b6c729d1b36c317396d6256a0241bb13f32b8
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2021-08-07 18:27:33 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2021-09-07 12:08:14 +0000

    riscv: Add NVMe, USB and HID support to GENERIC
    
    The SiFive FU740 has both NVMe and USB so we need both to ensure we can
    mount root, and HID is a dependency of USB.
    
    Reviewed by:    kp
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D31036
    
    (cherry picked from commit 6e162bd2f298b58a418a17d49f5671a9a113fc4e)
---
 sys/riscv/conf/GENERIC | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/sys/riscv/conf/GENERIC b/sys/riscv/conf/GENERIC
index c7e18ed7351b..d5aa270fb024 100644
--- a/sys/riscv/conf/GENERIC
+++ b/sys/riscv/conf/GENERIC
@@ -90,6 +90,10 @@ device		riscv_syscon
 # Bus drivers
 device		pci
 
+# Block devices
+device		scbus
+device		da
+
 # VirtIO support
 device		virtio			# Generic VirtIO bus (required)
 device		virtio_pci		# VirtIO PCI device
@@ -97,6 +101,25 @@ device		vtnet			# VirtIO Ethernet device
 device		virtio_blk		# VirtIO Block device
 device		virtio_mmio		# VirtIO MMIO bus
 
+# NVM Express (NVMe) support
+device		nvme		# base NVMe driver
+options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
+device		nvd		# expose NVMe namespaces as disks, depends on nvme
+
+# USB support
+options 	USB_DEBUG		# enable debug msgs
+device		ohci			# OHCI USB interface
+device		uhci			# UHCI USB interface
+device		ehci			# EHCI USB interface (USB 2.0)
+device		xhci			# XHCI USB interface (USB 3.0)
+device		usb			# USB Bus (required)
+device		ukbd			# Keyboard
+device		umass			# Disks/Mass storage - Requires scbus and da
+
+# HID support
+options 	HID_DEBUG	# enable debug msgs
+device		hid		# Generic HID support
+
 # DTrace support
 # device	dtrace
 # device	dtrace_profile



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109071209.187C9sIw087527>