blob: 102ee26811b35bff63f6e8feb9a3786ac8f7b5ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#
# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
#
# This file contains machine dependent kernel configuration notes. For
# machine independent notes, look in /sys/conf/NOTES.
#
#
cpu RISCV
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
options KDTRACE_FRAME # Ensure frames are compiled in
options KDTRACE_HOOKS # Kernel DTrace hooks
options DDB_CTF # Kernel ELF linker loads CTF data
options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
# Enable detailed accounting by the PV entry allocator.
options PV_STATS
# RISC-V SBI console
device rcons
# pseudo devices
device clk
device hwreset
device phy
device regulator
device syscon
device syscon_power
device riscv_syscon
# Backlight subsystem
device backlight
# MMC/SD/SDIO Card slot support
device dwmmc
# NOTE: dtrace introduces CDDL-licensed components into the kernel
device dtrace # dtrace core
device dtraceall # include all dtrace modules
# Serial (COM) ports
device uart_lowrisc # lowRISC UART driver
device uart_ns8250 # ns8250-type UART driver
# RTC
device da9063_rtc # Dialog Semiconductor DA9063 RTC
device goldfish_rtc # QEMU RTC
# Ethernet drivers
device dwc # Synopsys Designware GMAC Ethernet
device xae # Xilinx AXI Ethernet MAC
# DMA support
device xdma # DMA interface
device axidma # Xilinx AXI DMA Controller
# SPI
device xilinx_spi # Xilinx AXI Quad-SPI Controller
# Power management controllers
device da9063_pmic # Dialog Semiconductor DA9063 PMIC
# SiFive device drivers
device fe310aon
device fu740_pci_dw
device sifive_gpio
device sifive_spi
files "../sifive/files.sifive"
# Flattened Device Tree
options FDT
makeoptions MODULES_EXTRA+="dtb/sifive"
# FreeBSD/riscv didn't exist for these releases
nooptions COMPAT_FREEBSD4
nooptions COMPAT_FREEBSD5
nooptions COMPAT_FREEBSD6
nooptions COMPAT_FREEBSD7
nooptions COMPAT_FREEBSD9
nooptions COMPAT_FREEBSD10
nooptions COMPAT_FREEBSD11
# riscv doesn't support inb/outb, so disable chipset probing which needs it
nooptions PPC_PROBE_CHIPSET
# Makes assumptions about bus tags that aren't true on riscv
nodevice snd_cmi
# Don't yet have hwpmc(4)
nodevice hwpmc
nooptions HWPMC_HOOKS
# riscv doesn't yet have atomic_testandset_int and atomic_testandclear_int.
nodevice ccr
nodevice cxgbe
nodevice cxgbev
|