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