xref: /freebsd/sys/riscv/conf/NOTES (revision d37eb51047221dc3322b34db1038ff3aa533883f)
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# MMC/SD/SDIO Card slot support
36device		dwmmc
37
38# NOTE: dtrace introduces CDDL-licensed components into the kernel
39device		dtrace			# dtrace core
40device		dtraceall		# include all dtrace modules
41
42# Serial (COM) ports
43device		uart_lowrisc	# lowRISC UART driver
44device		uart_ns8250	# ns8250-type UART driver
45
46# RTC
47device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
48device		goldfish_rtc	# QEMU RTC
49
50# Ethernet drivers
51device  	dwc		# Synopsys Designware GMAC Ethernet
52device		xae		# Xilinx AXI Ethernet MAC
53
54# DMA support
55device		xdma		# DMA interface
56device		axidma		# Xilinx AXI DMA Controller
57
58# SPI
59device		xilinx_spi	# Xilinx AXI Quad-SPI Controller
60
61# Power management controllers
62device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
63
64# SiFive device drivers
65device		fe310aon
66device		fu740_pci_dw
67device		sifive_gpio
68device		sifive_spi
69files		"../sifive/files.sifive"
70
71# Flattened Device Tree
72options 	FDT
73makeoptions	MODULES_EXTRA+="dtb/sifive"
74
75# FreeBSD/riscv didn't exist for these releases
76nooptions 	COMPAT_FREEBSD4
77nooptions 	COMPAT_FREEBSD5
78nooptions 	COMPAT_FREEBSD6
79nooptions 	COMPAT_FREEBSD7
80nooptions 	COMPAT_FREEBSD9
81nooptions 	COMPAT_FREEBSD10
82nooptions 	COMPAT_FREEBSD11
83
84# riscv doesn't support inb/outb, so disable chipset probing which needs it
85nooptions 	PPC_PROBE_CHIPSET
86
87# Makes assumptions about bus tags that aren't true on riscv
88nodevice	snd_cmi
89
90# Don't yet have hwpmc(4)
91nodevice	hwpmc
92nooptions 	HWPMC_HOOKS
93
94# riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int.
95nodevice	ccr
96nodevice	cxgbe
97nodevice	cxgbev
98