xref: /freebsd/sys/arm64/conf/GENERIC (revision 96474d2a3fa895fb9636183403fc8ca7ccf60216)
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_SUPPORT		# Allow kldload of SCTP
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 	TMPFS			# Efficient memory filesystem
54options 	GEOM_RAID		# Soft RAID functionality.
55options 	GEOM_LABEL		# Provides labelization
56options 	COMPAT_FREEBSD32	# Compatible with FreeBSD/arm
57options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
58options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
59options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
60options 	KTRACE			# ktrace(1) support
61options 	STACK			# stack(9) support
62options 	SYSVSHM			# SYSV-style shared memory
63options 	SYSVMSG			# SYSV-style message queues
64options 	SYSVSEM			# SYSV-style semaphores
65options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
66options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
67options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
68options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
69options 	AUDIT			# Security event auditing
70options 	CAPABILITY_MODE		# Capsicum capability mode
71options 	CAPABILITIES		# Capsicum capabilities
72options 	MAC			# TrustedBSD MAC Framework
73options 	KDTRACE_FRAME		# Ensure frames are compiled in
74options 	KDTRACE_HOOKS		# Kernel DTrace hooks
75options 	DDB_CTF			# Kernel ELF linker loads CTF data
76options 	VFP			# Floating-point support
77options 	RACCT			# Resource accounting framework
78options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
79options 	RCTL			# Resource limits
80options 	SMP
81options 	INTRNG
82
83# Debugging support.  Always need this:
84options 	KDB			# Enable kernel debugger support.
85options 	KDB_TRACE		# Print a stack trace for a panic.
86# For full debugger support use (turn off in stable branch):
87options 	DDB			# Support DDB.
88#options 	GDB			# Support remote GDB.
89options 	DEADLKRES		# Enable the deadlock resolver
90options 	INVARIANTS		# Enable calls of extra sanity checking
91options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
92options 	WITNESS			# Enable checks to detect deadlocks and cycles
93options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
94options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
95options 	ALT_BREAK_TO_DEBUGGER	# Enter debugger on keyboard escape sequence
96options 	USB_DEBUG		# enable debug msgs
97options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
98
99# Kernel Sanitizers
100#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
101#options 	KCOV			# Kernel Coverage Sanitizer
102# Warning: KUBSAN can result in a kernel too large for loader to load
103#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
104#options 	KCSAN			# Kernel Concurrency Sanitizer
105
106# Kernel dump features.
107options 	EKCD			# Support for encrypted kernel dumps
108options 	GZIO			# gzip-compressed kernel and user dumps
109options 	ZSTDIO			# zstd-compressed kernel and user dumps
110options 	DEBUGNET		# debugnet networking
111options 	NETDUMP			# netdump(4) client support
112
113# SoC support
114options 	SOC_ALLWINNER_A64
115options 	SOC_ALLWINNER_H5
116options 	SOC_ALLWINNER_H6
117options 	SOC_CAVM_THUNDERX
118options 	SOC_FREESCALE_IMX8
119options 	SOC_HISI_HI6220
120options 	SOC_INTEL_STRATIX10
121options 	SOC_BRCM_BCM2837
122options 	SOC_BRCM_BCM2838
123options 	SOC_MARVELL_8K
124options		SOC_NXP_LS
125options 	SOC_ROCKCHIP_RK3328
126options 	SOC_ROCKCHIP_RK3399
127options 	SOC_XILINX_ZYNQ
128
129# Timer drivers
130device		a10_timer
131
132# Annapurna Alpine drivers
133device		al_ccu			# Alpine Cache Coherency Unit
134device		al_nb_service		# Alpine North Bridge Service
135device		al_iofic		# I/O Fabric Interrupt Controller
136device		al_serdes		# Serializer/Deserializer
137device		al_udma			# Universal DMA
138
139# Qualcomm Snapdragon drivers
140device		qcom_gcc		# Global Clock Controller
141
142# VirtIO support
143device		virtio
144device		virtio_pci
145device		virtio_mmio
146device		virtio_blk
147device		vtnet
148
149# CPU frequency control
150device		cpufreq
151
152# Bus drivers
153device		pci
154device		pci_n1sdp	# ARM Neoverse N1 SDP PCI
155device		al_pci		# Annapurna Alpine PCI-E
156options 	PCI_HP			# PCI-Express native HotPlug
157options 	PCI_IOV		# PCI SR-IOV support
158
159# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
160device		iflib
161device		em		# Intel PRO/1000 Gigabit Ethernet Family
162device		ix		# Intel 10Gb Ethernet Family
163
164# Ethernet NICs
165device		mdio
166device		mii
167device		miibus		# MII bus support
168device		awg		# Allwinner EMAC Gigabit Ethernet
169device		axgbe		# AMD Opteron A1100 integrated NIC
170device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
171device		neta		# Marvell Armada 370/38x/XP/3700 NIC
172device  	smc		# SMSC LAN91C111
173device		vnic		# Cavium ThunderX NIC
174device		al_eth		# Annapurna Alpine Ethernet NIC
175device		dwc_rk		# Rockchip Designware
176device		dwc_socfpga	# Altera SOCFPGA Ethernet MAC
177device		genet		# Broadcom on RPi4
178device		ffec		# iMX FFEC
179
180# Etherswitch devices
181device		etherswitch	# Enable etherswitch support
182device		miiproxy	# Required for etherswitch
183device		e6000sw		# Marvell mv88e6085 based switches
184
185# Block devices
186device		ahci
187device		scbus
188device		da
189
190# ATA/SCSI peripherals
191device		pass		# Passthrough device (direct ATA/SCSI access)
192
193# NVM Express (NVMe) support
194device		nvme		# base NVMe driver
195options 	NVME_USE_NVD=0	# prefer the cam(4) based nda(4) driver
196device		nvd		# expose NVMe namespaces as disks, depends on nvme
197
198# MMC/SD/SDIO Card slot support
199device		sdhci
200device		sdhci_xenon		# Marvell Xenon SD/MMC controller
201device		aw_mmc			# Allwinner SD/MMC controller
202device		mmc			# mmc/sd bus
203device		mmcsd			# mmc/sd flash cards
204device		dwmmc
205device		dwmmc_altera
206device		dwmmc_hisi
207device		rk_dwmmc
208device		rk_emmcphy
209
210# Serial (COM) ports
211device		uart		# Generic UART driver
212device		uart_imx	# iMX8 UART
213device		uart_msm	# Qualcomm MSM UART driver
214device		uart_mu		# RPI3 aux port
215device		uart_mvebu	# Armada 3700 UART driver
216device		uart_ns8250	# ns8250-type UART driver
217device		uart_snps
218device		pl011
219
220# USB support
221device		aw_usbphy		# Allwinner USB PHY
222device		rk_usb2phy		# Rockchip USB2PHY
223device		rk_typec_phy		# Rockchip TypeC PHY
224device		dwcotg			# DWC OTG controller
225device		musb			# Mentor Graphics USB OTG controller
226device		ohci			# OHCI USB interface
227device		ehci			# EHCI USB interface (USB 2.0)
228device		ehci_mv			# Marvell EHCI USB interface
229device		xhci			# XHCI USB interface (USB 3.0)
230device		dwc3			# Synopsys DWC controller
231device		aw_dwc3			# Allwinner DWC3 controller
232device		rk_dwc3			# Rockchip DWC3 controller
233device		usb			# USB Bus (required)
234device		ukbd			# Keyboard
235device		umass			# Disks/Mass storage - Requires scbus and da
236
237# USB ethernet support
238device		muge
239device		smcphy
240device		smsc
241
242# Sound support
243device sound
244device a10_codec
245
246# DMA controller
247device		a31_dmac
248
249# GPIO / PINCTRL
250device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
251device		aw_gpio		# Allwinner GPIO controller
252device		dwgpio		# Synopsys DesignWare APB GPIO Controller
253device		gpio
254device		gpioled
255device		fdt_pinctrl
256device		gpioregulator
257device		ls1046_gpio	# LS1046A GPIO controller
258device		mv_gpio		# Marvell GPIO controller
259device		mvebu_pinctrl	# Marvell Pinmux Controller
260device		pl061		# Arm PL061 GPIO controller
261device		rk_gpio		# RockChip GPIO Controller
262device		rk_pinctrl	# RockChip Pinmux Controller
263
264# I2C
265device		a37x0_iic	# Armada 37x0 I2C controller
266device		aw_rsb		# Allwinner Reduced Serial Bus
267device		bcm2835_bsc	# Broadcom BCM283x I2C bus
268device		iicbus
269device		iic
270device		twsi		# Allwinner I2C controller
271device		rk_i2c		# RockChip I2C controller
272device		syr827		# Silergy SYR827 PMIC
273device		sy8106a		# SY8106A Buck Regulator
274device		vf_i2c		# Freescale Vybrid I2C controller
275device		fsliic		# Freescale iMX I2C controller
276
277# Clock and reset controllers
278device		aw_ccu		# Allwinner clock controller
279
280# Interrupt controllers
281device		aw_nmi		# Allwinner NMI support
282device		mv_cp110_icu	# Marvell CP110 ICU
283device		mv_ap806_gicp	# Marvell AP806 GICP
284device		mv_ap806_sei	# Marvell AP806 SEI
285
286# Real-time clock support
287device		aw_rtc		# Allwinner Real-time Clock
288device		mv_rtc		# Marvell Real-time Clock
289
290# Crypto accelerators
291device		safexcel	# Inside Secure EIP-97
292
293# Watchdog controllers
294device		aw_wdog		# Allwinner Watchdog
295
296# Power management controllers
297device		axp81x		# X-Powers AXP81x PMIC
298device		rk805		# RockChip RK805 PMIC
299
300# EFUSE
301device		aw_sid		# Allwinner Secure ID EFUSE
302
303# Thermal sensors
304device		aw_thermal	# Allwinner Thermal Sensor Controller
305device		mv_thermal	# Marvell Thermal Sensor Controller
306
307# SPI
308device		spibus
309device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
310device		bcm2835_spi	# Broadcom BCM283x SPI bus
311device		rk_spi		# RockChip SPI controller
312
313# PWM
314device		pwm
315device		aw_pwm
316device		rk_pwm
317
318# Console
319device		vt
320device		kbdmux
321
322device		vt_efifb
323
324# EVDEV support
325device		evdev			# input event device support
326options		EVDEV_SUPPORT		# evdev support in legacy drivers
327device		uinput			# install /dev/uinput cdev
328device		aw_cir
329
330# Pseudo devices.
331device		crypto		# core crypto support
332device		loop		# Network loopback
333device		ether		# Ethernet support
334device		vlan		# 802.1Q VLAN support
335device		tuntap		# Packet tunnel.
336device		md		# Memory "disks"
337device		gif		# IPv6 and IPv4 tunneling
338device		firmware	# firmware assist module
339options 	EFIRT		# EFI Runtime Services
340
341# EXT_RESOURCES pseudo devices
342options 	EXT_RESOURCES
343device		clk
344device		phy
345device		hwreset
346device		nvmem
347device		regulator
348device		syscon
349device		aw_syscon
350
351# IO Domains
352device		rk_iodomain
353
354# The `bpf' device enables the Berkeley Packet Filter.
355# Be aware of the administrative consequences of enabling this!
356# Note that 'bpf' is required for DHCP.
357device		bpf		# Berkeley packet filter
358
359# Chip-specific errata
360options 	THUNDERX_PASS_1_1_ERRATA
361
362options 	FDT
363device		acpi
364
365# DTBs
366makeoptions	MODULES_EXTRA="dtb/allwinner dtb/imx8 dtb/mv dtb/rockchip dtb/rpi"
367