xref: /freebsd/sys/riscv/conf/NOTES (revision 5f60d8a8f2978f998da55d4e3cd0cb0e073bfc21)
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
19options 	IOMMU
20
21# Enable detailed accounting by the PV entry allocator.
22options 	PV_STATS
23
24# RISC-V SBI console
25device		rcons
26
27# pseudo devices
28device		clk
29device		hwreset
30device		phy
31device		regulator
32device		syscon
33device		syscon_power
34device		riscv_syscon
35
36# Backlight subsystem
37device		backlight
38
39# MMC/SD/SDIO Card slot support
40device		dwmmc
41
42# NOTE: dtrace introduces CDDL-licensed components into the kernel
43device		dtrace			# dtrace core
44device		dtraceall		# include all dtrace modules
45
46# Serial (COM) ports
47device		uart_lowrisc	# lowRISC UART driver
48device		uart_ns8250	# ns8250-type UART driver
49
50# RTC
51device		da9063_rtc	# Dialog Semiconductor DA9063 RTC
52device		goldfish_rtc	# QEMU RTC
53
54# Ethernet drivers
55device  	dwc		# Synopsys Designware GMAC Ethernet
56device		xae		# Xilinx AXI Ethernet MAC
57
58# DMA support
59device		xdma		# DMA interface
60device		axidma		# Xilinx AXI DMA Controller
61
62# SPI
63device		xilinx_spi	# Xilinx AXI Quad-SPI Controller
64
65# Power management controllers
66device		da9063_pmic	# Dialog Semiconductor DA9063 PMIC
67
68# SiFive device drivers
69device		fe310aon
70device		fu740_pci_dw
71device		sifive_gpio
72device		sifive_spi
73files		"../sifive/files.sifive"
74
75# Flattened Device Tree
76options 	FDT
77makeoptions	MODULES_EXTRA+="dtb/sifive"
78
79# FreeBSD/riscv didn't exist for these releases
80nooptions 	COMPAT_FREEBSD4
81nooptions 	COMPAT_FREEBSD5
82nooptions 	COMPAT_FREEBSD6
83nooptions 	COMPAT_FREEBSD7
84nooptions 	COMPAT_FREEBSD9
85nooptions 	COMPAT_FREEBSD10
86nooptions 	COMPAT_FREEBSD11
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
98# riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int.
99nodevice	ccr
100nodevice	cxgbe
101nodevice	cxgbev
102