xref: /freebsd/sys/arm64/conf/GENERIC (revision 9e5787d2284e187abb5b654d924394a65772e004)
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		ohci			# OHCI USB interface
226device		ehci			# EHCI USB interface (USB 2.0)
227device		ehci_mv			# Marvell EHCI USB interface
228device		xhci			# XHCI USB interface (USB 3.0)
229device		dwc3			# Synopsys DWC controller
230device		aw_dwc3			# Allwinner DWC3 controller
231device		rk_dwc3			# Rockchip DWC3 controller
232device		usb			# USB Bus (required)
233device		ukbd			# Keyboard
234device		umass			# Disks/Mass storage - Requires scbus and da
235
236# USB ethernet support
237device		muge
238device		smcphy
239device		smsc
240
241# Sound support
242device sound
243device a10_codec
244
245# DMA controller
246device		a31_dmac
247
248# GPIO / PINCTRL
249device		a37x0_gpio	# Marvell Armada 37x0 GPIO controller
250device		aw_gpio		# Allwinner GPIO controller
251device		dwgpio		# Synopsys DesignWare APB GPIO Controller
252device		gpio
253device		gpioled
254device		fdt_pinctrl
255device		gpioregulator
256device		ls1046_gpio	# LS1046A GPIO controller
257device		mv_gpio		# Marvell GPIO controller
258device		mvebu_pinctrl	# Marvell Pinmux Controller
259device		rk_gpio		# RockChip GPIO Controller
260device		rk_pinctrl	# RockChip Pinmux Controller
261
262# I2C
263device		a37x0_iic	# Armada 37x0 I2C controller
264device		aw_rsb		# Allwinner Reduced Serial Bus
265device		bcm2835_bsc	# Broadcom BCM283x I2C bus
266device		iicbus
267device		iic
268device		twsi		# Allwinner I2C controller
269device		rk_i2c		# RockChip I2C controller
270device		syr827		# Silergy SYR827 PMIC
271device		sy8106a		# SY8106A Buck Regulator
272device		vf_i2c		# Freescale Vybrid I2C controller
273device		fsliic		# Freescale iMX I2C controller
274
275# Clock and reset controllers
276device		aw_ccu		# Allwinner clock controller
277
278# Interrupt controllers
279device		aw_nmi		# Allwinner NMI support
280device		mv_cp110_icu	# Marvell CP110 ICU
281device		mv_ap806_gicp	# Marvell AP806 GICP
282device		mv_ap806_sei	# Marvell AP806 SEI
283
284# Real-time clock support
285device		aw_rtc		# Allwinner Real-time Clock
286device		mv_rtc		# Marvell Real-time Clock
287
288# Crypto accelerators
289device		safexcel	# Inside Secure EIP-97
290
291# Watchdog controllers
292device		aw_wdog		# Allwinner Watchdog
293
294# Power management controllers
295device		axp81x		# X-Powers AXP81x PMIC
296device		rk805		# RockChip RK805 PMIC
297
298# EFUSE
299device		aw_sid		# Allwinner Secure ID EFUSE
300
301# Thermal sensors
302device		aw_thermal	# Allwinner Thermal Sensor Controller
303device		mv_thermal	# Marvell Thermal Sensor Controller
304
305# SPI
306device		spibus
307device		a37x0_spi	# Marvell Armada 37x0 SPI Controller
308device		bcm2835_spi	# Broadcom BCM283x SPI bus
309device		rk_spi		# RockChip SPI controller
310
311# PWM
312device		pwm
313device		aw_pwm
314device		rk_pwm
315
316# Console
317device		vt
318device		kbdmux
319
320device		vt_efifb
321
322# EVDEV support
323device		evdev			# input event device support
324options		EVDEV_SUPPORT		# evdev support in legacy drivers
325device		uinput			# install /dev/uinput cdev
326device		aw_cir
327
328# Pseudo devices.
329device		crypto		# core crypto support
330device		loop		# Network loopback
331device		ether		# Ethernet support
332device		vlan		# 802.1Q VLAN support
333device		tuntap		# Packet tunnel.
334device		md		# Memory "disks"
335device		gif		# IPv6 and IPv4 tunneling
336device		firmware	# firmware assist module
337options 	EFIRT		# EFI Runtime Services
338
339# EXT_RESOURCES pseudo devices
340options 	EXT_RESOURCES
341device		clk
342device		phy
343device		hwreset
344device		nvmem
345device		regulator
346device		syscon
347device		aw_syscon
348
349# IO Domains
350device		rk_iodomain
351
352# The `bpf' device enables the Berkeley Packet Filter.
353# Be aware of the administrative consequences of enabling this!
354# Note that 'bpf' is required for DHCP.
355device		bpf		# Berkeley packet filter
356
357# Chip-specific errata
358options 	THUNDERX_PASS_1_1_ERRATA
359
360options 	FDT
361device		acpi
362
363# DTBs
364makeoptions	MODULES_EXTRA="dtb/allwinner dtb/imx8 dtb/mv dtb/rockchip dtb/rpi"
365