xref: /freebsd/sys/arm64/conf/GENERIC (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
1#
2# GENERIC -- Generic kernel configuration file for FreeBSD/arm64
3#
4# For more information on this file, please read the config(5) manual page,
5# and/or the handbook section on Kernel Configuration Files:
6#
7#    https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
8#
9# The handbook is also available locally in /usr/share/doc/handbook
10# if you've installed the doc distribution, otherwise always see the
11# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
12# latest information.
13#
14# An exhaustive list of options and more detailed explanations of the
15# device lines is also present in the ../../conf/NOTES and NOTES files.
16# If you are in doubt as to the purpose or necessity of a line, check first
17# in NOTES.
18#
19# $FreeBSD$
20
21cpu		ARM64
22ident		GENERIC
23
24makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
25makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
26
27options 	SCHED_ULE		# ULE scheduler
28options 	NUMA			# Non-Uniform Memory Architecture support
29options 	PREEMPTION		# Enable kernel thread preemption
30options 	VIMAGE			# Subsystem virtualization, e.g. VNET
31options 	INET			# InterNETworking
32options 	INET6			# IPv6 communications protocols
33options 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
34options 	TCP_HHOOK		# hhook(9) framework for TCP
35options 	TCP_OFFLOAD		# TCP offload
36options		TCP_RFC7413		# TCP Fast Open
37options 	SCTP			# Stream Control Transmission Protocol
38options 	FFS			# Berkeley Fast Filesystem
39options 	SOFTUPDATES		# Enable FFS soft updates support
40options 	UFS_ACL			# Support for access control lists
41options 	UFS_DIRHASH		# Improve performance on big directories
42options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
43options 	QUOTA			# Enable disk quotas for UFS
44options 	MD_ROOT			# MD is a potential root device
45options 	NFSCL			# Network Filesystem Client
46options 	NFSD			# Network Filesystem Server
47options 	NFSLOCKD		# Network Lock Manager
48options 	NFS_ROOT		# NFS usable as /, requires NFSCL
49options 	MSDOSFS			# MSDOS Filesystem
50options 	CD9660			# ISO 9660 Filesystem
51options 	PROCFS			# Process filesystem (requires PSEUDOFS)
52options 	PSEUDOFS		# Pseudo-filesystem framework
53options 	GEOM_RAID		# Soft RAID functionality.
54options 	GEOM_LABEL		# Provides labelization
55options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
56options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
57options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
58options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
59options 	KTRACE			# ktrace(1) support
60options 	STACK			# stack(9) support
61options 	SYSVSHM			# SYSV-style shared memory
62options 	SYSVMSG			# SYSV-style message queues
63options 	SYSVSEM			# SYSV-style semaphores
64options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
65options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
66options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
67options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
68options 	AUDIT			# Security event auditing
69options 	CAPABILITY_MODE		# Capsicum capability mode
70options 	CAPABILITIES		# Capsicum capabilities
71options 	MAC			# TrustedBSD MAC Framework
72options 	KDTRACE_FRAME		# Ensure frames are compiled in
73options 	KDTRACE_HOOKS		# Kernel DTrace hooks
74options 	VFP			# Floating-point support
75options 	RACCT			# Resource accounting framework
76options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
77options 	RCTL			# Resource limits
78options 	SMP
79options 	INTRNG
80
81# Debugging support.  Always need this:
82options 	KDB			# Enable kernel debugger support.
83options 	KDB_TRACE		# Print a stack trace for a panic.
84# For full debugger support use (turn off in stable branch):
85options 	DDB			# Support DDB.
86#options 	GDB			# Support remote GDB.
87options 	DEADLKRES		# Enable the deadlock resolver
88options 	INVARIANTS		# Enable calls of extra sanity checking
89options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
90options 	WITNESS			# Enable checks to detect deadlocks and cycles
91options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
92options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
93options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
94options 	USB_DEBUG		# enable debug msgs
95options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
96
97# Kernel Sanitizers
98#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
99#options 	KCOV			# Kernel Coverage Sanitizer
100# Warning: KUBSAN can result in a kernel too large for loader to load
101#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
102#options 	KCSAN			# Kernel Concurrency Sanitizer
103
104# Kernel dump features.
105options 	EKCD			# Support for encrypted kernel dumps
106options 	GZIO			# gzip-compressed kernel and user dumps
107options 	ZSTDIO			# zstd-compressed kernel and user dumps
108options 	DEBUGNET		# debugnet networking
109options 	NETDUMP			# netdump(4) client support
110
111# SoC support
112options 	SOC_ALLWINNER_A64
113options 	SOC_ALLWINNER_H5
114options 	SOC_ALLWINNER_H6
115options 	SOC_CAVM_THUNDERX
116options 	SOC_HISI_HI6220
117options 	SOC_INTEL_STRATIX10
118options 	SOC_BRCM_BCM2837
119options 	SOC_BRCM_BCM2838
120options 	SOC_MARVELL_8K
121options 	SOC_ROCKCHIP_RK3328
122options 	SOC_ROCKCHIP_RK3399
123options 	SOC_XILINX_ZYNQ
124
125# Timer drivers
126device		a10_timer
127
128# Annapurna Alpine drivers
129device		al_ccu			# Alpine Cache Coherency Unit
130device		al_nb_service		# Alpine North Bridge Service
131device		al_iofic		# I/O Fabric Interrupt Controller
132device		al_serdes		# Serializer/Deserializer
133device		al_udma			# Universal DMA
134
135# Qualcomm Snapdragon drivers
136device		qcom_gcc		# Global Clock Controller
137
138# VirtIO support
139device		virtio
140device		virtio_pci
141device		virtio_mmio
142device		virtio_blk
143device		vtnet
144
145# CPU frequency control
146device		cpufreq
147
148# Bus drivers
149device		pci
150device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
151device		al_pci		# Annapurna Alpine PCI-E
152options 	PCI_HP			# PCI-Express native HotPlug
153options 	PCI_IOV		# PCI SR-IOV support
154
155# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
156device		iflib
157device		em		# Intel PRO/1000 Gigabit Ethernet Family
158device		ix		# Intel 10Gb Ethernet Family
159
160# Ethernet NICs
161device		mdio
162device		mii
163device		miibus		# MII bus support
164device		awg		# Allwinner EMAC Gigabit Ethernet
165device		axgbe		# AMD Opteron A1100 integrated NIC
166device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
167device		neta		# Marvell Armada 370/38x/XP/3700 NIC
168device  	smc		# SMSC LAN91C111
169device		vnic		# Cavium ThunderX NIC
170device		al_eth		# Annapurna Alpine Ethernet NIC
171device		dwc_rk		# Rockchip Designware
172device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
173
174# Etherswitch devices
175device		etherswitch	# Enable etherswitch support
176device		miiproxy	# Required for etherswitch
177device		e6000sw		# Marvell mv88e6085 based switches
178
179# Block devices
180device		ahci
181device		scbus
182device		da
183
184# ATA/SCSI peripherals
185device		pass		# Passthrough device (direct ATA/SCSI access)
186
187# NVM Express (NVMe) support
188device		nvme		# base NVMe driver
189options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
190device		nvd		# expose NVMe namespaces as disks, depends on nvme
191
192# MMC/SD/SDIO Card slot support
193device		sdhci
194device		sdhci_xenon		# Marvell Xenon SD/MMC controller
195device		aw_mmc			# Allwinner SD/MMC controller
196device		mmc			# mmc/sd bus
197device		mmcsd			# mmc/sd flash cards
198device		dwmmc
199device		dwmmc_altera
200device		dwmmc_hisi
201device		rk_dwmmc
202device		rk_emmcphy
203
204# Serial (COM) ports
205device		uart		# Generic UART driver
206device		uart_msm	# Qualcomm MSM UART driver
207device		uart_mu		# RPI3 aux port
208device		uart_mvebu	# Armada 3700 UART driver
209device		uart_ns8250	# ns8250-type UART driver
210device		uart_snps
211device		pl011
212
213# USB support
214device		aw_usbphy		# Allwinner USB PHY
215device		rk_usb2phy		# Rockchip USB2PHY
216device		rk_typec_phy		# Rockchip TypeC PHY
217device		dwcotg			# DWC OTG controller
218device		ohci			# OHCI USB interface
219device		ehci			# EHCI USB interface (USB 2.0)
220device		ehci_mv			# Marvell EHCI USB interface
221device		xhci			# XHCI USB interface (USB 3.0)
222device		dwc3			# Synopsys DWC controller
223device		aw_dwc3			# Allwinner DWC3 controller
224device		rk_dwc3			# Rockchip DWC3 controller
225device		usb			# USB Bus (required)
226device		ukbd			# Keyboard
227device		umass			# Disks/Mass storage - Requires scbus and da
228
229# USB ethernet support
230device		muge
231device		smcphy
232device		smsc
233
234# Sound support
235device sound
236device a10_codec
237
238# DMA controller
239device		a31_dmac
240
241# GPIO / PINCTRL
242device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
243device		aw_gpio		# Allwinner GPIO controller
244device		dwgpio		# Synopsys DesignWare APB GPIO Controller
245device		gpio
246device		gpioled
247device		fdt_pinctrl
248device		gpioregulator
249device		mv_gpio		# Marvell GPIO controller
250device		mvebu_pinctrl	# Marvell Pinmux Controller
251device		rk_gpio		# RockChip GPIO Controller
252device		rk_pinctrl	# RockChip Pinmux Controller
253
254# I2C
255device		a37x0_iic	# Armada 37x0 I2C controller
256device		aw_rsb		# Allwinner Reduced Serial Bus
257device		bcm2835_bsc	# Broadcom BCM283x I2C bus
258device		iicbus
259device		iic
260device		twsi		# Allwinner I2C controller
261device		rk_i2c		# RockChip I2C controller
262device		syr827		# Silergy SYR827 PMIC
263device		sy8106a		# SY8106A Buck Regulator
264
265# Clock and reset controllers
266device		aw_ccu		# Allwinner clock controller
267
268# Interrupt controllers
269device		aw_nmi		# Allwinner NMI support
270device		mv_cp110_icu	# Marvell CP110 ICU
271device		mv_ap806_gicp	# Marvell AP806 GICP
272device		mv_ap806_sei	# Marvell AP806 SEI
273
274# Real-time clock support
275device		aw_rtc		# Allwinner Real-time Clock
276device		mv_rtc		# Marvell Real-time Clock
277
278# Watchdog controllers
279device		aw_wdog		# Allwinner Watchdog
280
281# Power management controllers
282device		axp81x		# X-Powers AXP81x PMIC
283device		rk805		# RockChip RK805 PMIC
284
285# EFUSE
286device		aw_sid		# Allwinner Secure ID EFUSE
287
288# Thermal sensors
289device		aw_thermal	# Allwinner Thermal Sensor Controller
290device		mv_thermal	# Marvell Thermal Sensor Controller
291
292# SPI
293device		spibus
294device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
295device		bcm2835_spi	# Broadcom BCM283x SPI bus
296device		rk_spi		# RockChip SPI controller
297
298# PWM
299device		pwm
300device		aw_pwm
301device		rk_pwm
302
303# Console
304device		vt
305device		kbdmux
306
307device		vt_efifb
308
309# EVDEV support
310device		evdev			# input event device support
311options		EVDEV_SUPPORT		# evdev support in legacy drivers
312device		uinput			# install /dev/uinput cdev
313device		aw_cir
314
315# Pseudo devices.
316device		crypto		# core crypto support
317device		loop		# Network loopback
318device		ether		# Ethernet support
319device		vlan		# 802.1Q VLAN support
320device		tuntap		# Packet tunnel.
321device		md		# Memory "disks"
322device		gif		# IPv6 and IPv4 tunneling
323device		firmware	# firmware assist module
324options 	EFIRT		# EFI Runtime Services
325
326# EXT_RESOURCES pseudo devices
327options 	EXT_RESOURCES
328device		clk
329device		phy
330device		hwreset
331device		nvmem
332device		regulator
333device		syscon
334device		aw_syscon
335
336# IO Domains
337device		rk_iodomain
338
339# The `bpf' device enables the Berkeley Packet Filter.
340# Be aware of the administrative consequences of enabling this!
341# Note that 'bpf' is required for DHCP.
342device		bpf		# Berkeley packet filter
343
344# Chip-specific errata
345options 	THUNDERX_PASS_1_1_ERRATA
346
347options 	FDT
348device		acpi
349
350# DTBs
351makeoptions	MODULES_EXTRA="dtb/allwinner dtb/mv dtb/rockchip dtb/rpi"
352