xref: /freebsd/sys/riscv/conf/NOTES (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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
21options 	INTRNG			# Include INTRNG framework
22
23# RISC-V SBI console
24device		rcons
25
26# EXT_RESOURCES pseudo devices
27options 	EXT_RESOURCES
28device		clk
29device		phy
30device		regulator
31device		syscon
32device		syscon_power
33device		riscv_syscon
34
35# Backlight subsystem
36device		backlight
37
38# VirtIO support
39device		virtio			# Generic VirtIO bus (required)
40device		virtio_pci		# VirtIO PCI device
41device		vtnet			# VirtIO Ethernet device
42device		virtio_blk		# VirtIO Block device
43device		virtio_mmio		# VirtIO MMIO bus
44device		virtio_random		# VirtIO Entropy device
45
46# NOTE: dtrace introduces CDDL-licensed components into the kernel
47device		dtrace			# dtrace core
48device		dtraceall		# include all dtrace modules
49
50# Serial (COM) ports
51device		uart_lowrisc	# lowRISC UART driver
52device		uart_ns8250	# ns8250-type UART driver
53
54# RTC
55device		goldfish_rtc	# QEMU RTC
56
57# Ethernet drivers
58device		xae		# Xilinx AXI Ethernet MAC
59
60# DMA support
61device		xdma		# DMA interface
62device		axidma		# Xilinx AXI DMA Controller
63
64# SPI
65device		xilinx_spi	# Xilinx AXI Quad-SPI Controller
66
67# SOC-specific
68device		fe310aon
69device		fu540spi
70files		"../sifive/files.sifive"
71
72# Flattened Device Tree
73options 	FDT
74makeoptions	MODULES_EXTRA+="dtb/sifive"
75
76# FreeBSD/riscv didn't exist for these releases
77nooptions 	COMPAT_FREEBSD4
78nooptions 	COMPAT_FREEBSD5
79nooptions 	COMPAT_FREEBSD6
80nooptions 	COMPAT_FREEBSD7
81nooptions 	COMPAT_FREEBSD9
82nooptions 	COMPAT_FREEBSD10
83nooptions 	COMPAT_FREEBSD11
84
85# No support for remote GDB
86nooptions 	GDB
87
88# riscv doesn't support inb/outb, so disable chipset probing which needs it
89nooptions 	PPC_PROBE_CHIPSET
90
91# Makes assumptions about bus tags that aren't true on riscv
92nodevice	snd_cmi
93
94# Don't yet have hwpmc(4)
95nodevice	hwpmc
96nooptions 	HWPMC_HOOKS
97