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