xref: /freebsd/sys/riscv/conf/NOTES (revision 55141f2c8991b2a6adbf30bb0fe3e6cbc303f06d)
1#
2# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3#
4# This file contains machine dependent kernel configuration notes.  For
5# machine independent notes, look in /sys/conf/NOTES.
6#
7#
8
9cpu		RISCV
10
11makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
12makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
13
14options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
15options 	KDTRACE_FRAME		# Ensure frames are compiled in
16options 	KDTRACE_HOOKS		# Kernel DTrace hooks
17options 	DDB_CTF			# Kernel ELF linker loads CTF data
18options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
19
20# RISC-V SBI console
21device		rcons
22
23# pseudo devices
24device		clk
25device		hwreset
26device		phy
27device		regulator
28device		syscon
29device		syscon_power
30device		riscv_syscon
31
32# Backlight subsystem
33device		backlight
34
35# VirtIO support
36device		virtio			# Generic VirtIO bus (required)
37device		virtio_pci		# VirtIO PCI device
38device		vtnet			# VirtIO Ethernet device
39device		virtio_blk		# VirtIO Block device
40device		virtio_mmio		# VirtIO MMIO bus
41device		virtio_random		# VirtIO Entropy device
42
43# NVM Express (NVMe) support
44device		nvme		# base NVMe driver
45options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
46device		nvd		# expose NVMe namespaces as disks, depends on nvme
47
48# NOTE: dtrace introduces CDDL-licensed components into the kernel
49device		dtrace			# dtrace core
50device		dtraceall		# include all dtrace modules
51
52# Serial (COM) ports
53device		uart_lowrisc	# lowRISC UART driver
54device		uart_ns8250	# ns8250-type UART driver
55
56# RTC
57device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
58device		goldfish_rtc	# QEMU RTC
59
60# Ethernet drivers
61device		xae		# Xilinx AXI Ethernet MAC
62
63# DMA support
64device		xdma		# DMA interface
65device		axidma		# Xilinx AXI DMA Controller
66
67# SPI
68device		xilinx_spi	# Xilinx AXI Quad-SPI Controller
69
70# Power management controllers
71device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
72
73# SiFive device drivers
74device		fe310aon
75device		fu740_pci_dw
76device		sifive_gpio
77device		sifive_spi
78files		"../sifive/files.sifive"
79
80# Flattened Device Tree
81options 	FDT
82makeoptions	MODULES_EXTRA+="dtb/sifive"
83
84# FreeBSD/riscv didn't exist for these releases
85nooptions 	COMPAT_FREEBSD4
86nooptions 	COMPAT_FREEBSD5
87nooptions 	COMPAT_FREEBSD6
88nooptions 	COMPAT_FREEBSD7
89nooptions 	COMPAT_FREEBSD9
90nooptions 	COMPAT_FREEBSD10
91nooptions 	COMPAT_FREEBSD11
92
93# riscv doesn't support inb/outb, so disable chipset probing which needs it
94nooptions 	PPC_PROBE_CHIPSET
95
96# Makes assumptions about bus tags that aren't true on riscv
97nodevice	snd_cmi
98
99# Don't yet have hwpmc(4)
100nodevice	hwpmc
101nooptions 	HWPMC_HOOKS
102
103# riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int.
104nodevice	ccr
105nodevice	cxgbe
106nodevice	cxgbev
107